function page_manager_task_handler_ctools_access_set

Callback for access control ajax form on behalf of context task handler.

Writes the changed access to the cache.

File

page_manager/page_manager.module, line 1102

Code

function page_manager_task_handler_ctools_access_set($argument, $access) {
    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];
    }
    $handler->conf['access'] = $access;
    page_manager_set_page_cache($page);
}