You are here

function spaces_feature_access in Spaces 6

Same name and namespace in other branches
  1. 6.2 spaces.module \spaces_feature_access()

Menu feature access wrapper.

1 call to spaces_feature_access()
spaces_plugin_access_spaces_feature::access in includes/spaces_plugin_access_spaces_feature.inc
2 string references to 'spaces_feature_access'
spaces_core_menu in spaces_core/spaces_core.module
Implementation of hook_menu().
spaces_plugin_access_spaces_feature::get_access_callback in includes/spaces_plugin_access_spaces_feature.inc

File

./spaces.module, line 1604

Code

function spaces_feature_access($feature = NULL) {
  if ($space = spaces_get_space()) {
    if (!$space
      ->feature_access($feature)) {
      return false;
    }
    if (user_access('access content')) {
      return true;
    }
  }
  return false;
}