function themekey_help_examples_form in ThemeKey 6.2
Same name and namespace in other branches
- 6.4 themekey_help.inc \themekey_help_examples_form()
- 6.3 themekey_help.inc \themekey_help_examples_form()
- 7.3 themekey_help.inc \themekey_help_examples_form()
- 7 themekey_help.inc \themekey_help_examples_form()
- 7.2 themekey_help.inc \themekey_help_examples_form()
Uses drupal's form builder to format ThemeKey's help examples
See also
1 string reference to 'themekey_help_examples_form'
- themekey_help in ./
themekey.module - Implements hook_help().
File
- ./
themekey_help.inc, line 90
Code
function themekey_help_examples_form($collapsed = TRUE) {
$form['themekey_help_examples'] = array(
'#type' => 'fieldset',
'#title' => t('Examples'),
'#collapsible' => TRUE,
'#collapsed' => $collapsed,
);
$form['themekey_help_examples']['Set a special theme for site administrator'] = array(
'#type' => 'fieldset',
'#title' => t('Set a special theme for site administrator'),
'#collapsible' => TRUE,
'#collapsed' => $form['themekey_help_examples']['#collapsed'],
);
$form['themekey_help_examples']['Set a special theme for site administrator']['item'] = array(
'#type' => 'item',
'#value' => t('Create a Theme Switching Rules:') . '<pre>
Property: user:uid
Operator: =
Value: 1
</pre>',
);
// TODO: add some examples using drupal:path and drupal:path:wildcard
$form['themekey_help_examples']['TODO: add some examples using drupal:path and drupal:path:wildcard'] = array(
'#type' => 'fieldset',
'#title' => 'TODO: add some examples using drupal:path and drupal:path:wildcard',
'#collapsible' => TRUE,
'#collapsed' => $form['themekey_help_examples']['#collapsed'],
);
$form['themekey_help_examples']['TODO: add some examples using drupal:path and drupal:path:wildcard']['item'] = array(
'#type' => 'item',
'#value' => 'TODO' . '<pre>
</pre>',
);
return $form;
}