You are here

function hook_youtube_thumbnail_link_types_alter in YouTube Field 7

Alter the link types in the YouTube Thumbnail formatter's display settings.

Useful when linking a YouTube Thumbnail to something other than the content or YouTube video, such as opening the video in a modal window.

Parameters

array $link_types: An array of options to link a thumbnail to. The array items' keys are the machine names and values are the readable names.

1 function implements hook_youtube_thumbnail_link_types_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

youtube_colorbox_youtube_thumbnail_link_types_alter in modules/youtube_colorbox/youtube_colorbox.module
Implements hook_youtube_thumbnail_link_types_alter().
1 invocation of hook_youtube_thumbnail_link_types_alter()
youtube_thumbnail_link_types in ./youtube.inc
Returns a list of thumbnail link types.

File

./youtube.api.php, line 18
Hooks provided by the YouTube Field module.

Code

function hook_youtube_thumbnail_link_types_alter(array &$link_types) {

  // See youtube_colorbox_youtube_thumbnail_link_types_alter() within the
  // YouTube Colorbox module for example usage.
}