You are here

ckeditor_youtube.install in CKEditor Youtube 8

Install, update and uninstall functions for the ckeditor_youtube module.

File

ckeditor_youtube.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the ckeditor_youtube module.
 */

/**
 * Add the CKEditor Youtube default configuration.
 */
function ckeditor_youtube_update_8001() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('ckeditor_youtube.settings');
  $config
    ->set('library_path', 'libraries/youtube');
  $config
    ->save(TRUE);
}

Functions

Namesort descending Description
ckeditor_youtube_update_8001 Add the CKEditor Youtube default configuration.