You are here

function slick_ui_help in Slick Carousel 7.2

Same name and namespace in other branches
  1. 8.2 slick_ui/slick_ui.module \slick_ui_help()
  2. 8 slick_ui/slick_ui.module \slick_ui_help()
  3. 7.3 slick_ui/slick_ui.module \slick_ui_help()

Implements hook_help().

File

slick_ui/slick_ui.module, line 99
Provides the Slick carousel export UI.

Code

function slick_ui_help($path, $arg) {
  $slick = url(drupal_get_path('module', 'slick') . '/README.txt');
  $slick_fields = module_exists('slick_fields') ? url(drupal_get_path('module', 'slick_fields') . '/README.txt') : '';
  $slick_views = module_exists('slick_views') ? url(drupal_get_path('module', 'slick_views') . '/README.txt') : '';
  $slick_example = module_exists('slick_example') ? url(drupal_get_path('module', 'slick_example') . '/README.txt') : '';
  switch ($path) {
    case 'admin/help#slick_ui':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t("The Slick carousel module is a field formatter to create carousels. Also available as Views style plugin. <br />To get up running quickly, <a href='@url'>enable Slick example</a> module.", array(
        '@url' => url('admin/modules', array(
          'fragment' => 'edit-modules-slick',
        )),
      )) . '</p>';
      $output .= empty($slick_example) ? '' : '<p>' . t('Read <a href="@url">more info about Slick example</a> before you proceed.', array(
        '@url' => $slick_example,
      )) . '</p>';
      $output .= '<p>' . t('Read <a href="@url">more info about Slick</a> in general, including troubleshootings.', array(
        '@url' => $slick,
      )) . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl><dt>' . t('Optionsets') . '</dt>';
      $output .= '<dd>' . t('Manage optionsets at <a href="@url">Slick collection</a> page.', array(
        '@url' => url('admin/config/media/slick'),
      )) . '</dd>';
      $output .= '<dt>' . t('Usage as a field formatter') . '</dt>';
      $output .= empty($slick_fields) ? '' : '<dd>' . t('See relevant <a href="@url">README.txt</a> for Fields integration.', array(
        '@url' => $slick_fields,
      )) . '</dd>';
      $output .= '<dt>' . t('Usage as a Views style plugin') . '</dt>';
      $output .= empty($slick_views) ? '' : '<dd>' . t('See relevant <a href="@url">README.txt</a> for Views integration.', array(
        '@url' => $slick_views,
      )) . '</dd></dl>';
      return $output;
  }
}