You are here

function themekey_help_operators_form in ThemeKey 7.3

Same name and namespace in other branches
  1. 6.4 themekey_help.inc \themekey_help_operators_form()
  2. 6.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()

3 string references to 'themekey_help_operators_form'
themekey_css_help in themekey_css/themekey_css.module
Implements hook_help().
themekey_help in ./themekey.module
Implements hook_help().
themekey_redirect_help in themekey_redirect/themekey_redirect.module
Implements hook_help().

File

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

Code

function themekey_help_operators_form($form, &$form_state, $collapsed) {
  $form['themekey_help_operators'] = array(
    '#type' => 'fieldset',
    '#title' => t('Operators explained'),
    '#collapsible' => TRUE,
    '#collapsed' => $collapsed,
  );
  $form['themekey_help_operators']['='] = array(
    '#type' => 'item',
    '#markup' => 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',
    '#markup' => t('<strong>!</strong><br />not equals'),
  );
  $form['themekey_help_operators']['*'] = array(
    '#type' => 'item',
    '#markup' => t('<strong>*</strong><br />contains'),
  );
  $form['themekey_help_operators']['!*'] = array(
    '#type' => 'item',
    '#markup' => t('<strong>!*</strong><br />not contains'),
  );
  $form['themekey_help_operators']['<'] = array(
    '#type' => 'item',
    '#markup' => 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',
    '#markup' => 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',
    '#markup' => 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',
    '#markup' => t('<strong>=&gt;</strong><br />greater than or equal (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',
    '#markup' => 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'),
    )),
  );
  $form['themekey_help_operators']['!~'] = array(
    '#type' => 'item',
    '#markup' => t('<strong>!~</strong><br />non matchting regular expression, including delimiters and modifiers (see !link)', array(
      '!link' => l(t('PHP Manual'), 'http://php.net/manual/en/pcre.pattern.php'),
    )),
  );
  return $form;
}