You are here

function themekey_help in ThemeKey 7.2

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

Implements hook_help().

2 calls to themekey_help()
themekey_ui_help in ./themekey_ui.module
Implements hook_help().
themekey_user_profile_help in ./themekey_user_profile.module
Implements hook_help().

File

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

Code

function themekey_help($path, $arg) {
  switch ($path) {
    case 'admin/help#themekey':
      module_load_include('inc', 'themekey', 'themekey_help');
      $tutorials_form = drupal_get_form('themekey_help_tutorials_form', FALSE);
    case 'admin/config/user-interface/themekey':
      if (!function_exists('themekey_help_properties_form')) {
        module_load_include('inc', 'themekey', 'themekey_help');
      }
      $examples_form = drupal_get_form('themekey_help_examples_form', TRUE);
      $properties_form = drupal_get_form('themekey_help_properties_form', TRUE);
      $operators_form = drupal_get_form('themekey_help_operators_form', TRUE);
      $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':
          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 the current path, taxonomy terms, language, node type, and many, many other properties. It can also be easily extended to support additional properties, as exposed by other modules.') . '</p>' . '<p>' . $text_1 . '</p>' . drupal_render($tutorials_form) . drupal_render($examples_form) . drupal_render($properties_form) . drupal_render($operators_form);
        case 'admin/config/user-interface/themekey':
          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_render($examples_form) . drupal_render($properties_form) . drupal_render($operators_form);
      }
  }
}