You are here

function mobile_theme_help in Mobile Theme 7

Implements hook_help().

File

./mobile_theme.module, line 6

Code

function mobile_theme_help($path, $arg) {
  $output = '';
  switch ($path) {

    // Main module help for the block module
    case 'admin/help#mobile_theme':
      $output .= '<p>' . t('Adds the ability to choose which theme is used when the user visits the site using a mobile device.') . '</p>';
      $output .= theme('item_list', array(
        'title' => t('Instructions'),
        'type' => 'ol',
        'items' => array(
          t('Visit the <a href="@appearance">Appearance settings</a>.', array(
            '@appearance' => url('admin/appearance/settings'),
          )),
          t('Choose the mobile theme that will be used when the user is on a mobile device.'),
          t('You might want to install one of the alternative device detection method as outlined below.'),
        ),
      ));
      $output .= theme('item_list', array(
        'title' => t('Alternative detection methods'),
        'items' => array(
          'Browscap' => array(
            'data' => t('Browscap'),
            'children' => array(
              t('Install the <a href="@browscap">Browscap</a> Drupal module.', array(
                '@browscap' => 'http://drupal.org/project/browscap',
              )),
              t('Select Browscap in the <a href="@appearance">Appearance settings</a>.', array(
                '@appearance' => url('admin/appearance/settings'),
              )),
            ),
          ),
          'Mobile Device Detect' => array(
            'data' => t('Mobile Device Detect'),
            'children' => array(
              t('Visit <a href="@detectmobilebrowsers">http://detectmobilebrowsers.mobi</a>.', array(
                '@detectmobilebrowsers' => 'http://detectmobilebrowsers.mobi',
              )),
              t('<a href="@download">Download the code</a> and extract it to the Mobile Theme module directory.', array(
                '@download' => url('http://detectmobilebrowsers.mobi/?dl'),
              )),
              t('You should end up with <code>@path</code>.', array(
                '@path' => drupal_get_path('module', 'mobile_theme') . '/mobile_device_detect.php',
              )),
              t('It is recommended you <a href="@upgrade">upgrade</a> if on a commercial site.', array(
                '@upgrade' => drupal_get_path('module', 'mobile_theme') . '/upgrade.php',
              )),
              t('Select Mobile Device Detect in the <a href="@appearance">Appearance settings</a>.', array(
                '@appearance' => url('admin/appearance/settings'),
              )),
            ),
          ),
        ),
      ));
  }
  return $output;
}