/** * Set an item's state to enabled or disabled and output to user. * * If javascript is in use, this will rebuild the list and send that back * as though the filter form had been executed. */ function set_item_state($state, $js, $input, $item) { ctools_export_crud_set_status($this->plugin['schema'], $item, $state); if (!$js) { drupal_goto(ctools_export_ui_plugin_base_path($this->plugin)); } else { return $this->list_page($js, $input); } }
/** * Set an item's state to enabled or disabled and output to user. * * If javascript is in use, this will rebuild the list and send that back * as though the filter form had been executed. */ function set_item_state($state, $js, $input, $item) { ctools_export_crud_set_status($this->plugin['schema'], $item, $state); // Rebuild index and flush caches. form_builder_crud_index_save(); drupal_flush_all_caches(); if (!$js) { drupal_goto(ctools_export_ui_plugin_base_path($this->plugin)); } else { return $this->list_page($js, $input); } }