function path_breadcrumbs_ctools_access_get in Path Breadcrumbs 7.2
Same name and namespace in other branches
- 7.3 path_breadcrumbs_ui/path_breadcrumbs_ui.module \path_breadcrumbs_ctools_access_get()
Callback for access control ajax form on behalf of context task handler (third step). Returns the cached access config and contexts used.
Parameters
$path_name: Machine name of breadcrumb.
Return value
array
File
- path_breadcrumbs_ui/
path_breadcrumbs_ui.module, line 586 - Provide user interface for CRUD operations with path breadcrumbs.
Code
function path_breadcrumbs_ctools_access_get($path_name) {
$breadcrumb = path_breadcrumbs_object_cache_get($path_name);
$contexts = path_breadcrumbs_get_contexts_from_arguments($breadcrumb->arguments, TRUE);
$access = array();
if (!empty($breadcrumb->access)) {
$access = $breadcrumb->access;
}
return array(
$access,
$contexts,
);
}