aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_params
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2009-04-27 09:47:43 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2009-04-27 09:47:43 +0000
commita69b21cc7ee12c117b58f0d940f7cb9d38278384 (patch)
tree685d65bdf14b69c614b1b6676fb30cdb56c9c25d /plugins/video_params
parent8914e5e66485a1cb9ee1fb741ae47a561167104e (diff)
downloadvideo-a69b21cc7ee12c117b58f0d940f7cb9d38278384.tar.gz
video-a69b21cc7ee12c117b58f0d940f7cb9d38278384.tar.bz2
adding plugins to the HEAD
Diffstat (limited to 'plugins/video_params')
-rw-r--r--plugins/video_params/video_params.info4
-rw-r--r--plugins/video_params/video_params.module11
2 files changed, 8 insertions, 7 deletions
diff --git a/plugins/video_params/video_params.info b/plugins/video_params/video_params.info
index 1c6bc1a..222f5ac 100644
--- a/plugins/video_params/video_params.info
+++ b/plugins/video_params/video_params.info
@@ -1,5 +1,5 @@
-; $Id$
name = Video Params
description = Enable addition of html params to object generated by video module. Useful if you need to use swf videos which needs params to be passed.
-dependencies = video
+dependencies[] = video
package = "Video"
+core = 6.x \ No newline at end of file
diff --git a/plugins/video_params/video_params.module b/plugins/video_params/video_params.module
index 46fa2e3..4fa71a1 100644
--- a/plugins/video_params/video_params.module
+++ b/plugins/video_params/video_params.module
@@ -1,11 +1,12 @@
<?php
-// $Id$
-
/**
* @file
* Enable addition of params to object generated by video module
*
* @author Fabio Varesano <fvaresano at yahoo dot it>
+ * porting to Drupal 6
+ * @author Heshan Wanigasooriya <heshan at heidisoft.com><heshanmw@gmail.com>
+ * @todo
*/
@@ -13,8 +14,8 @@
/**
* Implementation of hook_help().
*/
-function video_params_help($section) {
- switch ($section) {
+function video_params_help($path, $arg) {
+ switch ($path) {
case 'admin/modules#description':
return t('Enable addition of html params to object generated by video module. Useful if you need to use swf videos which needs params to be passed.');
}
@@ -36,7 +37,7 @@ function video_params_perm() {
* We use this to add a text area to the video creation form.
* In the text area the user will be able to insert his param value association.
*/
-function video_params_form_alter($form_id, &$form) {
+function video_params_form_alter(&$form, &$form_state, $form_id) {
if($form_id == 'video_node_form' && isset($form['video']) && user_access('insert object params')) {