You are here

function workbench_moderation_nodedraft_enable in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 plugins/page_manager/tasks/nodedraft.inc \workbench_moderation_nodedraft_enable()

Callback to enable/disable the page from the UI.

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

File

plugins/page_manager/tasks/nodedraft.inc, line 101

Code

function workbench_moderation_nodedraft_enable($cache, $status) {
  variable_set('workbench_moderation_nodedraft_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;
  }
}