You are here

function hook_youtube_thumbnail_link_uri_alter in YouTube Field 7

Alter a linked thumbnail's uri.

Useful to define what a thumbnail should link to for a link type added with hook_youtube_thumbnail_link_types_alter().

Parameters

array $uri: The current uri array. Contains the keys:

  • 'path': The link path, as eventually passed to l().
  • 'options': The link options, as eventually passed to l().

array $settings: The field item's display settings.

array $item: The field item to provide the link for.

1 function implements hook_youtube_thumbnail_link_uri_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_uri_alter in modules/youtube_colorbox/youtube_colorbox.module
Implements hook_youtube_thumbnail_link_uri_alter().
1 invocation of hook_youtube_thumbnail_link_uri_alter()
youtube_field_formatter_view in ./youtube.module
Implements hook_field_formatter_view().

File

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

Code

function hook_youtube_thumbnail_link_uri_alter(array &$uri, array &$settings, array $item) {

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