easydb-8.x-1.0-rc1/easydb.install

easydb.install
<?php

/**
 * @file
 * Installation functions for easydb module.
 */

/**
 * Implements hook_install().
 *
 * Points the user to the settings and permissions page after installation.
 */
function easydb_install() {
  // Route "easydb.settings" seems to be not available yet when hook_install()
  // runs, so we can't link to Url::fromRoute('easydb.settings') here.
  $message = t('You installed the easydb File Picker module. Before you can use it, you need to set up the URL of your easydb server and the language mapping on the module configuration page. You may also want to adjust the permissions on the permissions page.');
  \Drupal::messenger()->addWarning($message);
}

/**
 * Implements hook_uninstall().
 *
 * Deletes the UserData (containing the window_preferences).
 */
function easydb_uninstall() {
  \Drupal::service('user.data')->delete('easydb');
}

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

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