You are here

function ctools_ruleset_ctools_access_summary in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 ctools_access_ruleset/plugins/access/ruleset.inc \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
Plugin to provide access control based on user rulesetission strings.

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