function lightning_acquiadam_requirements in Media: Acquia DAM 8
Implements hook_requirements().
File
- modules/
lightning_acquiadam/ lightning_acquiadam.install, line 11 - Drupal install and update hooks.
Code
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;
}