summaryrefslogtreecommitdiff
path: root/modules/bhavika/photo_gallery/photo_gallery.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bhavika/photo_gallery/photo_gallery.module')
-rw-r--r--modules/bhavika/photo_gallery/photo_gallery.module35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/bhavika/photo_gallery/photo_gallery.module b/modules/bhavika/photo_gallery/photo_gallery.module
new file mode 100644
index 0000000..17bce25
--- /dev/null
+++ b/modules/bhavika/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 for various pictures uploaded on site') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function photo_gallery_theme() {
+ return [
+ 'photo_gallery' => [
+ 'render element' => 'children',
+ ],
+ ];
+}