function spaces_og_handler_field_og_group_nids::init in Spaces 7.3
Same name and namespace in other branches
- 6.3 spaces_og/views/spaces_og_handler_field_og_group_nids.inc \spaces_og_handler_field_og_group_nids::init()
- 7 spaces_og/views/spaces_og_handler_field_og_group_nids.inc \spaces_og_handler_field_og_group_nids::init()
Override of init(). Omit/exclude this field if we're within a group space.
File
- spaces_og/
views/ spaces_og_handler_field_og_group_nids.inc, line 8
Class
Code
function init(&$view, $options) {
parent::init($view, $options);
$space = spaces_get_space();
if ($space && $space->type === 'og') {
$this->options['exclude'] = TRUE;
}
}