| 1 |
<?php
|
| 2 |
//$Id$
|
| 3 |
/**
|
| 4 |
* @file
|
| 5 |
* The video module has some hooks which should make adding
|
| 6 |
* new features to the video module easier.
|
| 7 |
*
|
| 8 |
* This file contains example of implementation and documentation for
|
| 9 |
* all the available hooks defined in the video module.
|
| 10 |
*
|
| 11 |
* Video module hooks are different from standard drupal hooks
|
| 12 |
* Video module hooks have a leading "v_". The name of a function which
|
| 13 |
* is implementing a video hook is something like: modulename_v_hookname
|
| 14 |
*
|
| 15 |
* Although each active module which implement a video module hooks
|
| 16 |
* will be executed when that hook is called, if you are developing a
|
| 17 |
* video module specific addition (a plug in) I suggest you to call your
|
| 18 |
* module video_something and place it under your video module plugins folder.
|
| 19 |
*
|
| 20 |
* @author Fabio Varesano <fvaresano at yahoo dot it>
|
| 21 |
* porting to Drupal 6
|
| 22 |
* @author Heshan Wanigasooriya <heshan at heidisoft.com><heshanmw@gmail.com>
|
| 23 |
* @todo
|
| 24 |
*/
|
| 25 |
|
| 26 |
|
| 27 |
//TODO: When we will release a stable version we have to document all the APIs
|
| 28 |
// the video module have
|
| 29 |
|
| 30 |
|
| 31 |
function hook_v_info() {};
|
| 32 |
|
| 33 |
|
| 34 |
/**
|
| 35 |
* This hook is called by the video_image plugins once
|
| 36 |
* TODO: better documentation
|
| 37 |
*/
|
| 38 |
function hook_v_autothumbnail($node) {
|
| 39 |
;
|
| 40 |
}
|
| 41 |
|
| 42 |
/**
|
| 43 |
The hook_v_get_params is used by plugins to write an html param inside
|
| 44 |
inside video generated object tag during the play.
|
| 45 |
|
| 46 |
@param $node the node on which is being played
|
| 47 |
|
| 48 |
@return a keyed array of tipe 'param_name'=>'param_value'
|
| 49 |
*/
|
| 50 |
function hook_v_get_params(&$node) {
|
| 51 |
return array('flashVars' => 'autostart=true&url=false');
|
| 52 |
}
|
| 53 |
|
| 54 |
|
| 55 |
|