function monolog_requirements in Monolog 7
Same name and namespace in other branches
- 8 monolog.install \monolog_requirements()
- 2.x monolog.install \monolog_requirements()
Implements hook_requirements().
File
- ./
monolog.install, line 11 - Install, update, and uninstall functions for the Monolog module.
Code
function monolog_requirements($phase) {
$requirements = array();
if (!module_exists('composer_manager') && !class_exists('Drupal\\Monolog\\Logger')) {
$requirements['monolog_logger_class'] = array(
'title' => t('The Drupal\\Monolog\\Logger class was not found'),
'value' => t('Make sure the Monolog package is installed via Composer. This can be done using the <a href="!url">composer_manager</a> module.', array(
'!url' => 'https://drupal.org/project/composer_manager',
)),
'severity' => REQUIREMENT_ERROR,
);
}
return $requirements;
}