function uc_store_requirements in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_store/uc_store.install \uc_store_requirements()
- 6.2 uc_store/uc_store.install \uc_store_requirements()
Implements hook_requirements().
File
- uc_store/
uc_store.install, line 11 - Install, update, and uninstall functions for the uc_store module.
Code
function uc_store_requirements($phase) {
$requirements = array();
if ($phase == 'runtime') {
$severities = array(
'ok' => REQUIREMENT_OK,
'warning' => REQUIREMENT_WARNING,
'error' => REQUIREMENT_ERROR,
);
module_load_include('inc', 'uc_store', 'uc_store.admin');
$results = module_invoke_all('uc_store_status');
foreach ($results as $status) {
$requirements[] = array(
'severity' => isset($severities[$status['status']]) ? $severities[$status['status']] : REQUIREMENT_INFO,
'title' => $status['title'],
'value' => $status['desc'],
);
}
}
return $requirements;
}