You are here

function spaces_og_access_admin in Spaces 6.3

Same name and namespace in other branches
  1. 7.3 spaces_og/spaces_og.module \spaces_og_access_admin()
  2. 7 spaces_og/spaces_og.module \spaces_og_access_admin()

Access callback for OG administrative items under node/%. Prevents items from showing up under node types that are not groups.

1 string reference to 'spaces_og_access_admin'
spaces_og_menu_alter in spaces_og/spaces_og.module
Implementation of hook_menu_alter().

File

spaces_og/spaces_og.module, line 204

Code

function spaces_og_access_admin($node) {
  if (og_is_group_type($node->type) && ($space = spaces_load('og', $node->nid))) {
    return spaces_access_admin(NULL, $space);
  }
  else {
    return FALSE;
  }
}