You are here

function hook_magnific_popup_thumbnail_schemes in Magnific Popup 7

Define default thumbnail styles for specific URI schemes.

Overriden by per-field settings specifying a thumbnail style.

1 function implements hook_magnific_popup_thumbnail_schemes()

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

magnific_popup_youtube_magnific_popup_thumbnail_schemes in modules/magnific_popup_youtube.module
Implements hook_magnific_popup_thumbnail_schemes().
1 invocation of hook_magnific_popup_thumbnail_schemes()
magnific_popup_field_formatter_prepare_view in includes/magnific_popup.formatters.inc
Implements hook_field_formatter_prepare_view().

File

./magnific_popup.api.php, line 13
magnific_popup/magnific_popup.api.php

Code

function hook_magnific_popup_thumbnail_schemes() {

  // Specify that "youtube://" URIs should get the special thumbnail image style
  // "magnific_popup_yt_preview_wplay".
  $thumbnail_schemes = array(
    'youtube' => 'magnific_popup_yt_preview_wplay',
  );
  return $thumbnail_schemes;
}