You are here

function video_embed_field_video_styles in Video Embed Field 7.2

Get an array of all styles and their settings.

Return value

array An array of styles keyed by the video style name (name).

See also

video_embed_field_video_style_load()

2 calls to video_embed_field_video_styles()
video_embed_field_video_style_load in ./video_embed_field.module
Load a style by style name. May be used as a loader for menu items.
video_embed_field_video_style_options in ./video_embed_field.module
Get an array of image styles suitable for using as select list options.

File

./video_embed_field.module, line 179
Provides a simple field for easily embedding videos from youtube or vimeo

Code

function video_embed_field_video_styles() {
  $styles =& drupal_static(__FUNCTION__);

  // Grab from cache or build the array.
  if (!isset($styles)) {

    // Load the style via ctools - which will handle all the caching for us -
    // Because it does a bit more logic, lets still statically cache this.
    ctools_include('export');
    $styles = ctools_export_load_object('vef_video_styles');
  }
  return $styles;
}