function video_module_invoke in Video 6.4
Same name and namespace in other branches
- 6.5 video.module \video_module_invoke()
- 6.3 video.module \video_module_invoke()
Invokes hook_video_*action*() in every module. Eg : hook_video_submit() hook_video_insert() hook_video_preview() hook_video_delete() hook_video_load() hook_video_form() - to show values once upload is completed eg. Resolution, and Convert on Save etc
We cannot use module_invoke() for this, because the arguments need to be passed by reference.
3 calls to video_module_invoke()
- video_file_delete in ./
video.module - Implementation of hook_file_delete().
- video_node_update_submit in ./
video.module - video_widget_process in ./
video_widget.inc - Video_widget_process for API handlers for any video types.
File
- ./
video.module, line 29 - video.module
Code
function video_module_invoke($action, &$array, &$video = NULL, $other = NULL) {
foreach (module_list() as $module) {
$function = $module . '_video_' . $action;
if (function_exists($function)) {
$function($array, $video, $other);
}
}
}