You are here

function oa_core_create_space_access in Open Atrium Core 7.2

Menu access callback for creating space types

Parameters

$tid:

1 string reference to 'oa_core_create_space_access'
oa_core_menu in ./oa_core.module
Implements hook_menu().

File

./oa_core.module, line 336

Code

function oa_core_create_space_access($tid) {
  $gid = oa_core_get_space_context(TRUE);
  $tids = oa_core_get_allowed_space_terms($gid);
  return !isset($tids) || empty($tids) || isset($tids[$tid]);
}