You are here

function ctools_ruleset_ctools_access_settings 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_settings()

Settings form for the 'by ruleset' access plugin.

1 string reference to 'ctools_ruleset_ctools_access_settings'
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 77
Plugin to provide access control based on user rulesetission strings.

Code

function ctools_ruleset_ctools_access_settings(&$form, &$form_state, $conf) {
  if (!empty($form_state['plugin']['ruleset']->admin_description)) {
    $form['markup'] = array(
      '#markup' => '<div class="description">' . check_plain($form_state['plugin']['ruleset']->admin_description) . '</div>',
    );
  }
  return $form;
}