function video_embed_get_handlers in Video Embed Field 7.2
Same name and namespace in other branches
- 7 video_embed_field.module \video_embed_get_handlers()
Creates a hook that other modules can implement to get handlers.
Can be used to add more handlers if needed - from other modules and such.
See also
hook_video_embed_handler_info
7 calls to video_embed_get_handlers()
- video_embed_field_default_video_embed_styles in ./
video_embed_field.module - Implements hook_default_video_styles().
- video_embed_field_field_info in ./
video_embed_field.field.inc - Implements hook_field_info().
- video_embed_field_field_instance_settings_form in ./
video_embed_field.field.inc - Implements hook_field_instance_settings_form().
- video_embed_field_get_form in ./
video_embed_field.module - Creates a form from the player configuration options.
- video_embed_field_update_7009 in ./
video_embed_field.install - Adds new Allowed Providers setting to existing instances.
File
- ./
video_embed_field.module, line 223 - Provides a simple field for easily embedding videos from youtube or vimeo
Code
function video_embed_get_handlers() {
$handlers =& drupal_static(__FUNCTION__);
if (!isset($handlers)) {
if ($handlers = cache_get('video_embed_field_handlers')) {
$handlers = $handlers->data;
}
else {
$handlers = module_invoke_all('video_embed_handler_info');
drupal_alter('video_embed_handler_info', $handlers);
cache_set('video_embed_field_handlers', $handlers);
}
}
return $handlers;
}