aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-15 21:23:37 +0530
committerHeshan <heshan@heidisoft.com>2011-03-15 21:23:37 +0530
commit1689df6273653793d0f2354646fd935f56c6efca (patch)
treef04236e50880571067234a0cc3645cff26e9aa2f
parent22ea3cf474ec42cf6272fb14a8916240295cff1a (diff)
downloadvideo-1689df6273653793d0f2354646fd935f56c6efca.tar.gz
video-1689df6273653793d0f2354646fd935f56c6efca.tar.bz2
Features integration to the video presets
-rw-r--r--video.features.inc2
-rw-r--r--video.module16
2 files changed, 16 insertions, 2 deletions
diff --git a/video.features.inc b/video.features.inc
index 10fbc9d..a6176b4 100644
--- a/video.features.inc
+++ b/video.features.inc
@@ -1,7 +1,7 @@
<?php
// include the preset file
-module_load_include('inc', 'video', 'includes/video.preset');
+module_load_include('inc', 'video', 'modules/video_ui/video.preset');
/**
* Implementation of hook_features_export_options().
diff --git a/video.module b/video.module
index 400398f..4beee74 100644
--- a/video.module
+++ b/video.module
@@ -687,4 +687,18 @@ function rmdirr($dir) {
}
}
@rmdir($dir);
-} \ No newline at end of file
+}
+
+/**
+ * Implementation of hook_features_api()
+ *
+ */
+function video_features_api() {
+ return array(
+ 'video' => array(
+ 'name' => t('Video Presets'),
+ 'default_hook' => 'video_default_presets',
+ 'file' => drupal_get_path('module', 'video') . '/video.features.inc',
+ ),
+ );
+}