You are here

function themekey_help_operators_form in ThemeKey 6.3

Same name and namespace in other branches
  1. 6.4 themekey_help.inc \themekey_help_operators_form()
  2. 7.3 themekey_help.inc \themekey_help_operators_form()
  3. 7 themekey_help.inc \themekey_help_operators_form()
  4. 7.2 themekey_help.inc \themekey_help_operators_form()

Uses Drupal's form builder to format ThemeKey's help operators

See also

themekey_help()

1 string reference to 'themekey_help_operators_form'
themekey_help in ./themekey.module
Implements hook_help().

File

./themekey_help.inc, line 185
Provides content for help pages.

Code

function themekey_help_operators_form($form_state, $collapsed = TRUE) {
  $form['themekey_help_operators'] = array(
    '#type' => 'fieldset',
    '#title' => t('Operators explained'),
    '#collapsible' => TRUE,
    '#collapsed' => $collapsed,
  );
  $form['themekey_help_operators']['='] = array(
    '#type' => 'item',
    '#value' => t('<strong>=</strong><br />equals (exact value of a property, consider ThemeKey Debug to get an impression of the possible values)'),
  );
  $form['themekey_help_operators']['!'] = array(
    '#type' => 'item',
    '#value' => t('<strong>!</strong><br />not equal to'),
  );
  $form['themekey_help_operators']['<'] = array(
    '#type' => 'item',
    '#value' => t('<strong>&lt;</strong><br />less than (alphanumeric values are treated in alphabetical order: "A" is less than "B", but "B" is less than "a")'),
  );
  $form['themekey_help_operators']['<='] = array(
    '#type' => 'item',
    '#value' => t('<strong>&lt;=</strong><br />less than or equal to (alphanumeric values are treated in alphabetical order: "a" is less than "b" but "B" is less than "a" and "A" is less than "a")'),
  );
  $form['themekey_help_operators']['>'] = array(
    '#type' => 'item',
    '#value' => t('<strong>&gt;</strong><br />greater (alphanumeric values are treated in alphabetical order: "b" is greater than "a" but "a" is greater than "B")'),
  );
  $form['themekey_help_operators']['=>'] = array(
    '#type' => 'item',
    '#value' => t('<strong>=&gt;</strong><br />greater than or equal to (alphanumeric values are treated in alphabetical order: "b" is greater than "a" but "a" is greater than "B" and "a" is greater than "A")'),
  );
  $form['themekey_help_operators']['~'] = array(
    '#type' => 'item',
    '#value' => t('<strong>~</strong><br />regular expression including delimiters and modifiers (see !link)', array(
      '!link' => l(t('PHP Manual'), 'http://php.net/manual/en/pcre.pattern.php'),
    )),
  );
  return $form;
}