You are here

function page_manager_page_enable in Chaos Tool Suite (ctools) 6

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

Callback to enable/disable the page from the UI.

1 string reference to 'page_manager_page_enable'
page_manager_page_build_subtask in page_manager/plugins/tasks/page.inc
Build a subtask array for a given page.

File

page_manager/plugins/tasks/page.inc, line 698
Handle the 'page' task, which creates pages with arbitrary tasks and lets handlers decide how they will be rendered.

Code

function page_manager_page_enable(&$cache, $status) {
  $page =& $cache->subtask['subtask'];
  ctools_include('export');
  ctools_export_set_object_status($page, $status);
  $page->disabled = FALSE;
}