lightning_acquiadam.install in Media: Acquia DAM 8
Drupal install and update hooks.
File
modules/lightning_acquiadam/lightning_acquiadam.installView source
<?php
/**
* @file
* Drupal install and update hooks.
*/
/**
* Implements hook_requirements().
*/
function lightning_acquiadam_requirements($phase) {
$requirements = [];
if ('runtime' === $phase) {
$requirements['lightning_acquiadam_deprecated'] = [
'title' => t('Media: Acquia DAM'),
'description' => t('The Lightning: Acquia DAM module should be uninstalled. It has been deprecated in favor of Media: Acquia DAM - Example Configuration.'),
'severity' => REQUIREMENT_ERROR,
];
}
elseif ('install' === $phase) {
$requirements['lightning_acquiadam_noinstall'] = [
'title' => t('Media: Acquia DAM'),
'description' => t('The Lightning: Acquia DAM module should not be installed. It has been deprecated in favor of Media: Acquia DAM - Example Configuration.'),
'severity' => REQUIREMENT_ERROR,
];
}
return $requirements;
}
Functions
Name | Description |
---|---|
lightning_acquiadam_requirements | Implements hook_requirements(). |