You are here

function sweaver_object_status in Sweaver 6

Same name and namespace in other branches
  1. 7 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 778
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/settings/sweaver/editor/' . $redirect);
}