diff options
author | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-06-18 14:13:14 +0000 |
---|---|---|
committer | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-06-18 14:13:14 +0000 |
commit | a57ba2e81539c2025bf34efff3775a6390423be0 (patch) | |
tree | 8254a74f32ce02167b9ea365d08416cc1050278e /hooks.php | |
parent | 5ba89adf4795a030133d5caa905dc0c98b6f3e3a (diff) | |
download | video-a57ba2e81539c2025bf34efff3775a6390423be0.tar.gz video-a57ba2e81539c2025bf34efff3775a6390423be0.tar.bz2 |
Adding file hooks.php for developer who want to extends video module functionality
Diffstat (limited to 'hooks.php')
-rw-r--r-- | hooks.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/hooks.php b/hooks.php new file mode 100644 index 0000000..a534c1d --- /dev/null +++ b/hooks.php @@ -0,0 +1,35 @@ +<? +// $Id$ + +/** + * @file + * The video module has some hooks which should make the adding + * of new features to the video module easier. + * + * This file contains example of implementation and documentation for + * all the available hooks defined in the video module. + * + * Video module hooks are different from standard drupal hooks + * Video module hooks have a leading "v_". The name of a function which + * is implementing a video hook is something like: modulename_v_hookname + * + * Although each active module which implement a video module hooks + * will be executed when that hook is called, if you are developing a + * video module specific addition (a plug in) I suggest you to call your + * module video_something and place it under your video module folder. + * + * @author Fabio Varesano <fvaresano at yahoo dot it> + */ + + +/** +The hook_v_get_params is used by plugins to write an html param inside +inside video generated object tag during the play. + +@param $node the node on which is being played + +@return a keyed array of tipe 'param_name'=>'param_value' +*/ +function hook_v_get_params(&$node) { + return array('flashVars' => 'autostart=true&url=false'); +} |