function sweaver_object_status in Sweaver 7
Same name and namespace in other branches
- 6 plugins/sweaver_plugin_editor/sweaver_plugin_editor.admin.inc \sweaver_object_status()
Enable or disable an object.
1 string reference to 'sweaver_object_status'
- sweaver_plugin_editor::sweaver_menu in plugins/
sweaver_plugin_editor/ sweaver_plugin_editor.inc - Menu registry.
File
- plugins/
sweaver_plugin_editor/ sweaver_plugin_editor.admin.inc, line 807 - Administrative functions for Sweaver.
Code
function sweaver_object_status($redirect, $object, $status) {
ctools_include('export');
ctools_export_set_object_status($object, $status);
cache_clear_all('sweaver', 'cache');
drupal_goto('admin/config/user-interface/sweaver/editor/' . $redirect);
}