summaryrefslogtreecommitdiff
path: root/modules/kalpesh/photo_gallery/photo_gallery.module
blob: ed6ed1101264770eaa830d3f543aebf17e5d6d5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

/**
 * @file
 * Contains photo_gallery.module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function photo_gallery_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the photo_gallery module.
    case 'help.page.photo_gallery':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('This module is use for stylish photo gallery') . '</p>';
      return $output;

    default:
  }
}

/**
 * Implements hook_theme().
 */
function photo_gallery_theme() {
  return [
    'photo_gallery' => [
      'render element' => 'children',
    ],
  ];
}