You are here

function biblio_citeproc_requirements in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 modules/CiteProc/biblio_citeproc.install \biblio_citeproc_requirements()
  2. 7.2 modules/CiteProc/biblio_citeproc.install \biblio_citeproc_requirements()

File

modules/CiteProc/biblio_citeproc.install, line 16

Code

function biblio_citeproc_requirements($phase) {
  $requirements = array();
  $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,
    );
    if (!module_exists('biblio')) {
      $requirements['biblio_crossref'] = array(
        'title' => $t('Biblio'),
        'description' => $t('The Biblio module must be installed first'),
        'severity' => REQUIREMENT_ERROR,
      );
    }
  }
  return $requirements;
}