You are here

function page_manager_search_enable in Chaos Tool Suite (ctools) 6

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

Callback to enable/disable the page from the UI.

1 string reference to 'page_manager_search_enable'
page_manager_search_build_subtask in page_manager/plugins/tasks/search.inc
Build a subtask array for a given page.

File

page_manager/plugins/tasks/search.inc, line 239
Handle the 'node view' override task.

Code

function page_manager_search_enable($cache, $status) {
  variable_set('page_manager_search_disabled_' . $cache->subtask_id, $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_search'] = TRUE;
  }
}