function mongodb_requirements in MongoDB 8
Same name and namespace in other branches
- 8.2 modules/mongodb/mongodb.install \mongodb_requirements()
- 6 mongodb.install \mongodb_requirements()
- 7 mongodb.install \mongodb_requirements()
Implement hook_requirements().
File
- ./
mongodb.install, line 12
Code
function mongodb_requirements($phase) {
$requirements = array();
if (!extension_loaded('mongo')) {
$requirements['mongodb'] = array(
'title' => t('Mongodb'),
'value' => t('Not found'),
'description' => t('Mongodb requires the PHP MongoDB extension to be installed.'),
'severity' => REQUIREMENT_ERROR,
);
}
return $requirements;
}