function spaces_views_data_alter in Spaces 6
Same name and namespace in other branches
- 6.3 includes/spaces.views.inc \spaces_views_data_alter()
- 6.2 includes/spaces.views.inc \spaces_views_data_alter()
- 7.3 includes/spaces.views.inc \spaces_views_data_alter()
- 7 includes/spaces.views.inc \spaces_views_data_alter()
Implementation of hook_views_data_alter().
File
- includes/
spaces.views.inc, line 103
Code
function spaces_views_data_alter(&$data) {
// Add type filter by current feature.
$data['node']['feature'] = array(
'group' => t('Spaces'),
'title' => t('Node type in current feature'),
'help' => t('Filters on node types associated with the current spaces feature.'),
'filter' => array(
'field' => 'type',
'handler' => 'spaces_handler_filter_spaces_feature',
),
);
}