function bynder_lightning_requirements in Bynder 8
Same name and namespace in other branches
- 8.3 modules/lightning/bynder_lightning.install \bynder_lightning_requirements()
- 8.2 modules/lightning/bynder_lightning.install \bynder_lightning_requirements()
- 4.0.x modules/lightning/bynder_lightning.install \bynder_lightning_requirements()
Implements hook_requirements().
File
- modules/
lightning/ bynder_lightning.install, line 11 - Install, uninstall and update hooks for Bynder Lighting module.
Code
function bynder_lightning_requirements($phase) {
if ($phase == 'install' && !\Drupal::moduleHandler()
->moduleExists('lightning_media')) {
return [
'bynder_lightning' => [
'title' => 'Lightning media is disabled',
'description' => t('Bynder Lightning integration requires Lightning media module to be enabled.'),
'severity' => REQUIREMENT_ERROR,
],
];
}
}