function spaces_feature_access in Spaces 6
Same name and namespace in other branches
- 6.2 spaces.module \spaces_feature_access()
Menu feature access wrapper.
1 call to spaces_feature_access()
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;
}