function biblio_citeproc_requirements in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/biblio_citeproc.install \biblio_citeproc_requirements()
- 7.2 modules/CiteProc/biblio_citeproc.install \biblio_citeproc_requirements()
File
- modules/
CiteProc/ biblio_citeproc.install, line 18
Code
function biblio_citeproc_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time.
$t = get_t();
if ($phase == 'install') {
if (function_exists('mb_strtoupper')) {
$mbs_severity = REQUIREMENT_OK;
$mbs_desc = $t('PHP "Multibyte String" extension is enabled');
}
else {
$mbs_severity = REQUIREMENT_ERROR;
$mbs_desc = $t('Your PHP installation does not have the "Multibyte String" extension enabled, Biblio - CiteProc requires the Multibyte String extension');
}
$requirements['mbs'] = array(
'title' => $t('PHP Multibyte String'),
'severity' => $mbs_severity,
'description' => $mbs_desc,
);
}
return $requirements;
}