aboutsummaryrefslogtreecommitdiff
path: root/video.module
diff options
context:
space:
mode:
Diffstat (limited to 'video.module')
-rw-r--r--video.module12
1 files changed, 12 insertions, 0 deletions
diff --git a/video.module b/video.module
index c906261..2c066e8 100644
--- a/video.module
+++ b/video.module
@@ -132,6 +132,18 @@ function video_menu($may_cache) {
return $items;
}
+
+/**
+ * Implementation of hook_init()
+ * Currently just does a check for whether the views module exists and,
+ * if it does loads the video views module.
+ */
+function video_init() {
+ if (module_exist('views')) {
+ include(drupal_get_path('module', 'video') .'/views_video.inc');
+ }
+}
+
/**
* Internal Drupal links hook
*