You are here

media_ckeditor.module in Media CKEditor 7

Same filename and directory in other branches
  1. 7.2 media_ckeditor.module

Primarily Drupal hooks.

File

media_ckeditor.module
View source
<?php

/**
 * @file
 * Primarily Drupal hooks.
 */

/**
 * Implements hook_js_alter().
 *
 * @todo: remove this when https://www.drupal.org/node/2542566 is fixed.
 */
function media_ckeditor_js_alter(&$javascript) {
  $path = drupal_get_path('module', 'ckeditor') . '/plugins/media/library.js';

  // Remove the default CKEditor Media plugin library JS.
  if (isset($javascript[$path])) {
    unset($javascript[$path]);
  }
}

Functions

Namesort descending Description
media_ckeditor_js_alter Implements hook_js_alter().