You are here

function themekey_help_examples_form in ThemeKey 6.3

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

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

See also

themekey_help()

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

File

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

Code

function themekey_help_examples_form($form_state, $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' => TRUE,
  );
  $form['themekey_help_examples']['Set a special theme for site administrator']['item'] = array(
    '#type' => 'item',
    '#value' => t('Create 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' => TRUE,
  );
  $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;
}