function page_manager_node_edit_enable in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/plugins/tasks/node_edit.inc \page_manager_node_edit_enable()
Callback to enable/disable the page from the UI.
1 string reference to 'page_manager_node_edit_enable'
- page_manager_node_edit_page_manager_tasks in page_manager/
plugins/ tasks/ node_edit.inc - Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- page_manager/
plugins/ tasks/ node_edit.inc, line 160
Code
function page_manager_node_edit_enable($cache, $status) {
variable_set('page_manager_node_edit_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_node_edit'] = TRUE;
}
}