You are here

function hook_youtube_thumbnail_field_formatter_settings_alter in YouTube Field 7

Alter the field display settings for the YouTube Thumbnail formatter.

Useful to add settings to a custom link type added with hook_youtube_thumbnail_link_types_alter().

Parameters

array $element: The field formatter form to add settings to.

array $instance: The instance of the field being formatted.

array $settings: Existing form settings.

string $field_name: The machine name of the field.

1 function implements hook_youtube_thumbnail_field_formatter_settings_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_field_formatter_settings_alter in modules/youtube_colorbox/youtube_colorbox.module
Implements hook_youtube_thumbnail_field_formatter_settings_alter().
1 invocation of hook_youtube_thumbnail_field_formatter_settings_alter()
youtube_field_formatter_settings_form in ./youtube.module
Implements hook_field_formatter_settings_form().

File

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

Code

function hook_youtube_thumbnail_field_formatter_settings_alter(array &$element, array $instance, array $settings, $field_name) {

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