You are here

function colorbox_node_check_access in Colorbox Node 7.3

Checks the access of the path for the current user based on the menu system access

Parameters

$path:

Return value

bool

1 string reference to 'colorbox_node_check_access'
colorbox_node_menu in ./colorbox_node.module
Implements hook_menu().

File

./colorbox_node.module, line 56
Creates a menu callback with support for displaying a node inside of a colorbox.

Code

function colorbox_node_check_access($path) {
  $menu_item = menu_get_item($path);
  return isset($menu_item['access']) && $menu_item['access'];
}