diff options
author | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-04-27 09:47:43 +0000 |
---|---|---|
committer | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-04-27 09:47:43 +0000 |
commit | a69b21cc7ee12c117b58f0d940f7cb9d38278384 (patch) | |
tree | 685d65bdf14b69c614b1b6676fb30cdb56c9c25d /plugins/video_optmetadata | |
parent | 8914e5e66485a1cb9ee1fb741ae47a561167104e (diff) | |
download | video-a69b21cc7ee12c117b58f0d940f7cb9d38278384.tar.gz video-a69b21cc7ee12c117b58f0d940f7cb9d38278384.tar.bz2 |
adding plugins to the HEAD
Diffstat (limited to 'plugins/video_optmetadata')
-rw-r--r-- | plugins/video_optmetadata/video_optmetadata.info | 4 | ||||
-rw-r--r-- | plugins/video_optmetadata/video_optmetadata.module | 21 |
2 files changed, 19 insertions, 6 deletions
diff --git a/plugins/video_optmetadata/video_optmetadata.info b/plugins/video_optmetadata/video_optmetadata.info index aaa0b17..0dece56 100644 --- a/plugins/video_optmetadata/video_optmetadata.info +++ b/plugins/video_optmetadata/video_optmetadata.info @@ -1,5 +1,5 @@ -; $Id$ name = Video Opt Metadata description = Enable addition of optional metadata on video nodes created by video module. Optional metadata are Video Bitrate, Audio Bitrate, Audio Sampling Rate and Audio Channels. -dependencies = video +dependencies[] = video package = "Video" +core = 6.x
\ No newline at end of file diff --git a/plugins/video_optmetadata/video_optmetadata.module b/plugins/video_optmetadata/video_optmetadata.module index f3764d2..9967e23 100644 --- a/plugins/video_optmetadata/video_optmetadata.module +++ b/plugins/video_optmetadata/video_optmetadata.module @@ -1,19 +1,21 @@ <?php -// $Id$ /** * @file * Enable addition of optional metadata on video nodes created 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 */ /** * Implementation of hook_help(). */ -function video_optmetadata_help($section) { - switch ($section) { +function video_optmetadata_help($path, $arg) { + switch ($path) { case 'admin/modules#description': return t('Enable addition of optional metadata on video nodes created by video module. Optional metadata are Video Bitrate, Audio Bitrate, Audio Sampling Rate and Audio Channels.'); } @@ -34,7 +36,7 @@ function video_optmetadata_perm() { * We use this to add some fields to the video creation form. * In those fields users will be able to insert some video metadatas. */ -function video_optmetadata_form_alter($form_id, &$form) { +function video_optmetadata_form_alter(&$form, &$form_state, $form_id) { if($form_id == 'video_node_form' && isset($form['video']) && user_access('insert optional metadata')) { @@ -132,3 +134,14 @@ function theme_video_metadata($node) { } return $output; } + +/** + * Implementation of hook_theme(). + */ +function video_optmetadata_theme() { + return array( + 'video_metadata' => array( + 'arguments' => array('node' => NULL), + ), + ); +}
\ No newline at end of file |