function ctools_ruleset_ctools_access_summary

Provide a summary description based upon the checked roles.

1 string reference to 'ctools_ruleset_ctools_access_summary'
ruleset.inc in ctools_access_ruleset/plugins/access/ruleset.inc
Plugin to provide access control based on user rulesetission strings.

File

ctools_access_ruleset/plugins/access/ruleset.inc, line 101

Code

function ctools_ruleset_ctools_access_summary($conf, $context, $plugin) {
    if (!empty($plugin['ruleset']->admin_description)) {
        return check_plain($plugin['ruleset']->admin_description);
    }
    else {
        return check_plain($plugin['ruleset']->admin_title);
    }
}