You are here

video_embed_media.install in Video Embed Field 8

Same filename and directory in other branches
  1. 8.2 modules/video_embed_media/video_embed_media.install

Install file for video_embed_media.

File

modules/video_embed_media/video_embed_media.install
View source
<?php

/**
 * @file
 * Install file for video_embed_media.
 */

/**
 * Implements hook_install().
 */
function video_embed_media_install() {
  if (\Drupal::moduleHandler()
    ->moduleExists('media_entity_embeddable_video')) {
    \Drupal::service('video_embed_media.upgrade_manager')
      ->upgrade();
  }

  // Copy the video icons into the right place.
  $icon_folder = drupal_get_path('module', 'video_embed_media') . '/images/icons';
  $destination = \Drupal::config('media_entity.settings')
    ->get('icon_base');
  media_entity_copy_icons($icon_folder, $destination);
}

Functions

Namesort descending Description
video_embed_media_install Implements hook_install().