function ctools_perm_ctools_access_summary

Provide a summary description based upon the checked roles.

1 string reference to 'ctools_perm_ctools_access_summary'
perm.inc in plugins/access/perm.inc
Plugin to provide access control based on user permission strings.

File

plugins/access/perm.inc, line 65

Code

function ctools_perm_ctools_access_summary($conf, $context) {
    if (!isset($conf['perm'])) {
        return t('Error, unset permission');
    }
    $permissions = module_invoke_all('permission');
    return t('@identifier has "@perm"', array(
        '@identifier' => $context->identifier,
        '@perm' => $permissions[$conf['perm']]['title'],
    ));
}