Colorbox load file.

Fichier

./colorbox_load.install

View source
<?php


/**
 * @file
 * Colorbox load file.
 */

/**
 * Implements hook_install().
 */
function colorbox_load_install() {
    $config = \Drupal::configFactory()->getEditable('ng_lightbox.settings');
    $config->set('renderer', 'drupal_colorbox');
    $config->save();
}

/**
 * Implements hook_uninstall().
 */
function colorbox_load_uninstall() {
    $config = \Drupal::configFactory()->getEditable('ng_lightbox.settings');
    $config->set('renderer', NULL);
    $config->save();
}

Functions

Titre Deprecated Résumé
colorbox_load_install Implements hook_install().
colorbox_load_uninstall Implements hook_uninstall().