You are here

function space_og::group_node_admin_access in Spaces 7

Same name and namespace in other branches
  1. 6.3 spaces_og/plugins/space_og.inc \space_og::group_node_admin_access()
  2. 7.3 spaces_og/plugins/space_og.inc \space_og::group_node_admin_access()

Custom function group_node_admin_access(). Check that the current menu node object is also a group node.

File

spaces_og/plugins/space_og.inc, line 173

Class

space_og
Organic groups integration for Spaces.

Code

function group_node_admin_access($node) {
  if ($node && og_is_group_type($node->type)) {
    return $this
      ->admin_access();
  }
  return FALSE;
}