The alternative: Implement hook_video_embed_handler_info_alter() in your cust...

Contribution Date
Technology
Contribution Project
Contribution Details

The alternative: Implement hook_video_embed_handler_info_alter() in your custom module and override defaults. Below is the sample hook i have used.

NOTE: After implementing the hook or making any changes in the Hook, you need to clear the cache because the Handler Information in backend uses the Drupal cache API.

/** * Implements hook_video_embed_handler_info_alter(). */ function HOOK_video_embed_handler_info_alter(&$info) { // On Youtube Videos. if (isset($info['youtube'])) { // Hide Controls. $info['youtube']['defaults']['controls'] = 0; // Don't Show Title and other options. $info['youtube']['defaults']['showinfo'] = 0; // Hide Annotations. $info['youtube']['defaults']['iv_load_policy'] = 3; } }
Issue Status
Active
Contribution Author
Files count
0
Patches count
0