function 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

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,
    );
}