function video_embed_field_video_style_load in Video Embed Field 7.2
Load a style by style name. May be used as a loader for menu items.
Note that you may also use ctools_export_load_object with the key being vef_video_styles
Parameters
string $name: The name of the style.
Return value
array An video style array containing the following keys:
- "name": The unique video style ID.
- "title": The human readable video style name.
- "data": An array of video settings within this video style.
If the video style name or ID is not valid, an empty array is returned.
2 calls to video_embed_field_video_style_load()
- template_preprocess_video_embed_field_embed_code in ./
video_embed_field.module - Processes variables to format a video player.
- video_embed_field_get_ajax_url in ./
video_embed_field.module - Generates the AJAX path array from the video URL and the video_style.
File
- ./
video_embed_field.module, line 209 - Provides a simple field for easily embedding videos from youtube or vimeo
Code
function video_embed_field_video_style_load($name) {
$styles = video_embed_field_video_styles();
return isset($styles[$name]) ? $styles[$name] : FALSE;
}