1 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

core/modules/views/plugins/views_plugin_access_perm.inc, line 22
Definition of views_plugin_access_perm.

Class

views_plugin_access_perm
Access plugin that provides permission-based access control.

Code

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']);
}