consent-8.x-1.0-alpha5/modules/consent_never/consent_never.module

modules/consent_never/consent_never.module
<?php

/**
 * @file
 * Consent Never module file.
 */

/**
 * Implements hook_library_info_alter().
 */
function consent_never_library_info_alter(&$libraries, $extension) {
  if ($extension === 'consent') {
    $path = '/' . drupal_get_path('module', 'consent_never') . '/js/consent/';
    $libraries['base']['js'][$path . 'never.optin.js'] = [];
    $libraries['loader.oil']['js'] = [$path . 'loader.null.js' => []];
    $libraries['loader.oil']['dependencies'] = ['consent/base'];
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc