You are here

datex_fullcalendar.module in Datex 8

File

datex_fullcalendar/datex_fullcalendar.module
View source
<?php

use Drupal\Core\Asset\AttachedAssetsInterface;

/**
 * Implements hook_js_alter().
 *
 * Out js will be loaded via libraries.yml
 */
function datex_fullcalendar_js_alter(&$javascript, AttachedAssetsInterface $assets) {
  $unset = [];
  foreach ($javascript as $key => $value) {
    if (strpos($key, 'fullcalendar.library') >= 0) {
      $unset[] = $key;
    }
  }
  foreach ($unset as $u) {
    unset($javascript[$u]);
  }
}

Functions

Namesort descending Description
datex_fullcalendar_js_alter Implements hook_js_alter().