function ctools_export_ui::set_item_state

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.

2 calls to ctools_export_ui::set_item_state()
ctools_export_ui::disable_page in plugins/export_ui/ctools_export_ui.class.php
Callback to disable a page.
ctools_export_ui::enable_page in plugins/export_ui/ctools_export_ui.class.php
Callback to enable a page.

File

plugins/export_ui/ctools_export_ui.class.php, line 1186

Class

ctools_export_ui
Base class for export UI.

Code

public 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);
    }
}