You are here

protected function spaces_plugin_access_spaces_feature::get_my_feature in Spaces 6.3

Same name and namespace in other branches
  1. 7.3 includes/spaces_plugin_access_spaces_feature.inc \spaces_plugin_access_spaces_feature::get_my_feature()
  2. 7 includes/spaces_plugin_access_spaces_feature.inc \spaces_plugin_access_spaces_feature::get_my_feature()

Attempt to detect the feature that this view belongs to.

2 calls to spaces_plugin_access_spaces_feature::get_my_feature()
spaces_plugin_access_spaces_feature::access in includes/spaces_plugin_access_spaces_feature.inc
Check access directly.
spaces_plugin_access_spaces_feature::get_access_callback in includes/spaces_plugin_access_spaces_feature.inc
Provide the access check as a callback.

File

includes/spaces_plugin_access_spaces_feature.inc, line 92

Class

spaces_plugin_access_spaces_feature
Provides access control for views by checking against the current space's feature settings. Optionally allows a permission to be checked in addition to the first feature access control check.

Code

protected function get_my_feature() {
  $map = features_get_component_map('views');
  return !empty($map[$this->view->name]) ? reset($map[$this->view->name]) : FALSE;
}