aboutsummaryrefslogtreecommitdiff
path: root/video.module
diff options
context:
space:
mode:
authorFabio Varesano <fax8@13637.no-reply.drupal.org>2007-01-03 17:46:19 +0000
committerFabio Varesano <fax8@13637.no-reply.drupal.org>2007-01-03 17:46:19 +0000
commit10b8a26d749a372dc75cdea4a280b67ecc33a404 (patch)
tree415bbc33e8b2e258d39fe3bc43a4a2c3f1463e6f /video.module
parent45c0491dcf41c537595fdb465625aee806c9f390 (diff)
downloadvideo-10b8a26d749a372dc75cdea4a280b67ecc33a404.tar.gz
video-10b8a26d749a372dc75cdea4a280b67ecc33a404.tar.bz2
Patch #75359 by jrbeeman (http://drupal.org/user/16734):
Add Views module support
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
*