You are here

function themekey_help in ThemeKey 6.3

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

Implements hook_help().

File

./themekey.module, line 194
ThemeKey is designed as a generic theme switching module.

Code

function themekey_help($path, $arg) {
  $text_1 = t('For every page request Drupal steps through this Theme Switching Rule Chain until an activated rule matches or it reaches the end. If a rule matches, the theme associated with this rule will be applied to render the requested page.');
  switch ($path) {
    case 'admin/help#themekey':
      module_load_include('inc', 'themekey', 'themekey_help');
      return '<p>' . t('ThemeKey allows you to define simple or sophisticated Theme Switching Rules. Using these rules you can use a different theme depending on current path, taxonomy terms, language, node type and many, many more properties. It can also be easily extended to support additional properties, as exposed by other modules.') . '</p>' . '<p>' . $text_1 . '</p>' . drupal_get_form('themekey_help_tutorials_form', FALSE) . drupal_get_form('themekey_help_examples_form', FALSE) . drupal_get_form('themekey_help_properties_form', FALSE) . drupal_get_form('themekey_help_operators_form', TRUE);
    case 'admin/settings/themekey':
      module_load_include('inc', 'themekey', 'themekey_help');
      return '<p>' . $text_1 . '<br />' . t('To get an idea how to get started you might have a look at the !tutorials_link.', array(
        '!tutorials_link' => l(t('tutorials'), 'admin/help/themekey'),
      )) . '</p> ' . drupal_get_form('themekey_help_examples_form', TRUE) . drupal_get_form('themekey_help_properties_form', TRUE) . drupal_get_form('themekey_help_operators_form', TRUE);
  }
}