function page_manager_page_ctools_access_get in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 page_manager/page_manager.module \page_manager_page_ctools_access_get()
Callback for access control ajax form on behalf of page.inc task.
Returns the cached access config and contexts used.
File
- page_manager/
page_manager.module, line 1047 - The page manager module provides a UI and API to manage pages.
Code
function page_manager_page_ctools_access_get($argument) {
$page = page_manager_get_page_cache($argument);
$contexts = array();
// Load contexts based on argument data:
if ($arguments = _page_manager_page_get_arguments($page->subtask['subtask'])) {
$contexts = ctools_context_get_placeholders_from_argument($arguments);
}
return array(
$page->subtask['subtask']->access,
$contexts,
);
}