public function views_plugin_access_perm::summary_title in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 plugins/views_plugin_access_perm.inc \views_plugin_access_perm::summary_title()
- 6.2 plugins/views_plugin_access_perm.inc \views_plugin_access_perm::summary_title()
Return a string to display as the clickable title for the access control.
Overrides views_plugin_access::summary_title
File
- plugins/
views_plugin_access_perm.inc, line 32 - Definition of views_plugin_access_perm.
Class
- views_plugin_access_perm
- Access plugin that provides permission-based access control.
Code
public function summary_title() {
$permissions = module_invoke_all('permission');
if (isset($permissions[$this->options['perm']])) {
return $permissions[$this->options['perm']]['title'];
}
return t($this->options['perm']);
}