diff options
Diffstat (limited to 'modules/kalpesh/photo_gallery/photo_gallery.module')
-rw-r--r-- | modules/kalpesh/photo_gallery/photo_gallery.module | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/kalpesh/photo_gallery/photo_gallery.module b/modules/kalpesh/photo_gallery/photo_gallery.module new file mode 100644 index 0000000..ed6ed11 --- /dev/null +++ b/modules/kalpesh/photo_gallery/photo_gallery.module @@ -0,0 +1,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', + ], + ]; +} |