You are here

function warden_requirements in Warden 6

Same name and namespace in other branches
  1. 8.2 warden.install \warden_requirements()
  2. 8 warden.install \warden_requirements()
  3. 7 warden.install \warden_requirements()
  4. 3.x warden.install \warden_requirements()

Implements hook_requirements().

File

./warden.install, line 27
Clean up file for warden

Code

function warden_requirements($phase) {
  $t = get_t();
  $ssl_available = function_exists('openssl_seal');
  return array(
    'warden_openssl' => array(
      'title' => $t('Warden'),
      'value' => $ssl_available ? $t('Open SSL is available') : $t('Open SSL is not available'),
      'description' => $t('The PHP OpenSSL extension needs to be installed to communicate with Warden - ') . l(t('PHP Manual'), 'http://php.net/manual/en/openssl.installation.php'),
      'severity' => $ssl_available ? REQUIREMENT_OK : REQUIREMENT_ERROR,
    ),
  );
}