function themekey_help_operators_form in ThemeKey 7.2
Same name and namespace in other branches
- 6.4 themekey_help.inc \themekey_help_operators_form()
- 6.3 themekey_help.inc \themekey_help_operators_form()
- 7.3 themekey_help.inc \themekey_help_operators_form()
- 7 themekey_help.inc \themekey_help_operators_form()
Uses Drupal's form builder to format ThemeKey's help operators
See also
1 string reference to 'themekey_help_operators_form'
- themekey_help in ./
themekey.module - Implements hook_help().
File
- ./
themekey_help.inc, line 285 - 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><</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><=</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>></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>=></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;
}