You are here

function bynder_install in Bynder 8

Same name and namespace in other branches
  1. 8.3 bynder.install \bynder_install()
  2. 8.2 bynder.install \bynder_install()
  3. 4.0.x bynder.install \bynder_install()

Implements hook_install().

File

./bynder.install, line 43
Install, uninstall and update hooks for Bynder module.

Code

function bynder_install() {
  $source = drupal_get_path('module', 'bynder') . '/images/icons';
  $destination = \Drupal::config('media_entity.settings')
    ->get('icon_base');
  media_entity_copy_icons($source, $destination);
}