You are here

function themekey_help in ThemeKey 6.2

Same name and namespace in other branches
  1. 6.4 themekey.module \themekey_help()
  2. 6.3 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 213
ThemeKey is meant to be 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 to 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 are able to 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);
    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', FALSE) . drupal_get_form('themekey_help_properties_form', FALSE);
  }
}