You are here

function fancybox_help in fancyBox 7.2

Implements hook_help().

File

./fancybox.module, line 97
Provides the fancyBox jQuery plugin, a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages, and an extensive settings page for configuring fancyBox settings and how fancyBox…

Code

function fancybox_help($path, $arg) {
  $library = libraries_info('fancybox');
  $output = '';
  switch ($path) {
    case 'admin/help#fancybox':
      $output = '<h3>' . t('Installation') . '</h3>';
      $output .= '<ol>';
      $output .= '<li>' . t('Install the !libraries module.', array(
        '!libraries' => l(t('Libraries API'), 'http://drupal.org/project/libraries'),
      )) . '</li>';
      $output .= '<li>' . t('Download the !fancybox and upload the entire folder to %location. When installed correctly, the directory %dir should be available at %dir_location.', array(
        '!fancybox' => l(t('fancyBox plugin'), $library['download url']),
        '%location' => 'sites/all/libraries/fancybox',
        '%dir' => 'source/',
        '%dir_location' => 'sites/all/libraries/fancybox/source/',
      )) . '</li>';
      $output .= '</ol>';
      $output .= '<h3>' . t('Configuration') . '</h3>';
      $output .= '<p>' . t('You may configure fancyBox in the module\'s !page.', array(
        '!page' => l('configuration page', 'admin/config/user-interface/fancybox'),
      )) . '</p>';
      break;
  }
  return $output;
}