function _disable_breadcrumbs_access in Disable breadcrumbs 7
Content administration access check.
Parameters
$check_node_perm: Bool - Whether to additionally check 'administer nodes' permission, required for content admin pages/node_operations.
Return value
TRUE or FALSE.
2 calls to _disable_breadcrumbs_access()
- disable_breadcrumbs_form_node_admin_content_alter in ./
disable_breadcrumbs.module - Alter admin content form to show disable breadcrumb status of each node.
- disable_breadcrumbs_node_operations in ./
disable_breadcrumbs.module - Implements hook_node_operations().
File
- ./
disable_breadcrumbs.module, line 432 - Disable breadcrumbs
Code
function _disable_breadcrumbs_access($check_node_perm = FALSE) {
if (user_access('administer breadcrumbs') || user_access('disable node breadcrumbs')) {
if ($check_node_perm) {
if (user_access('administer nodes')) {
return TRUE;
}
return FALSE;
}
return TRUE;
}
return FALSE;
}