function og_handler_argument_group_audience_gid::title in Organic groups 7
Override title(); Get the label of the entity type.
Overrides views_handler_argument_numeric::title
File
- includes/
views/ og_handler_argument_group_audience_gid.inc, line 16 - Contains the group argument for field group audience.
Class
- og_handler_argument_group_audience_gid
- Field group audience - gid argument handler.
Code
function title() {
$title = '';
if (!empty($this->argument) && ($group = og_get_group('group', $this->argument))) {
if ($group
->access()) {
$title = og_label($group->gid);
}
}
return $title;
}