You are here

function photoswipe_help in PhotoSwipe 3.x

Same name and namespace in other branches
  1. 8.2 photoswipe.module \photoswipe_help()
  2. 8 photoswipe.module \photoswipe_help()
  3. 6 photoswipe.module \photoswipe_help()
  4. 7.2 photoswipe.module \photoswipe_help()
  5. 7 photoswipe.module \photoswipe_help()

Implements hook_help().

File

./photoswipe.module, line 62
Photswipe integration with Drupal module.

Code

function photoswipe_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the photoswipe module.
    case 'help.page.photoswipe':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('<a href=":url">Photoswipe</a> provides a nice javascript-based display for photo galleries, very sleek on mobile browsers.', [
        ':url' => 'http://www.photoswipe.com/',
      ]) . '</p>';
      return $output;
  }
}