You are here

function workbench_myworkbench_enable in Workbench 7

Callback to enable/disable the page from the UI.

1 string reference to 'workbench_myworkbench_enable'
workbench_myworkbench_page_manager_tasks in plugins/page_manager/tasks/myworkbench.inc
Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.

File

plugins/page_manager/tasks/myworkbench.inc, line 93

Code

function workbench_myworkbench_enable($cache, $status) {
  variable_set('workbench_myworkbench_disabled', $status);

  // Set a global flag so that the menu routine knows it needs
  // to set a message if enabling cannot be done.
  if (!$status) {
    $GLOBALS['page_manager_enabling_workbench'] = TRUE;
  }
}