function og_context_plugin_access_og_perm::summary_title in Organic groups 7.2
Same name and namespace in other branches
- 7 og_context/includes/views/og_context_plugin_access_og_perm.inc \og_context_plugin_access_og_perm::summary_title()
Return a string to display as the clickable title for the access control.
Overrides views_plugin_access::summary_title
File
- og_context/
includes/ views/ handlers/ og_context_plugin_access_og_perm.inc, line 71 - Contains views access plugin for OG permissions
Class
- og_context_plugin_access_og_perm
- Allow views to allow access to only users with a specified permission in the current group.
Code
function summary_title() {
$current_display = $this->view->current_display;
if ($this->options['group_id_arg'] === FALSE || $this->view->display[$current_display]->display_plugin != 'page') {
return $this->options['perm'];
}
$params = array(
'@perm' => $this->options['perm'],
'@arg' => $this->options['group_id_arg'],
);
return t('@perm, getting the group ID from argument position @arg', $params);
}