function page_manager_task_handler_ctools_access_get
Callback for access control ajax form on behalf of context task handler.
Returns the cached access config and contexts used.
File
-
page_manager/
page_manager.module, line 1076
Code
function page_manager_task_handler_ctools_access_get($argument) {
list($task_name, $name) = explode('*', $argument);
$page = page_manager_get_page_cache($task_name);
if (empty($name)) {
$handler =& $page->new_handler;
}
else {
$handler =& $page->handlers[$name];
}
if (!isset($handler->conf['access'])) {
$handler->conf['access'] = array();
}
ctools_include('context-task-handler');
$contexts = ctools_context_handler_get_all_contexts($page->task, $page->subtask, $handler);
return array(
$handler->conf['access'],
$contexts,
);
}