You are here

function wsclient_soap_requirements in Web service client 7

Implements hook_requirements().

File

wsclient_soap/wsclient_soap.install, line 11
Web service client SOAP - installation file.

Code

function wsclient_soap_requirements($phase) {

  // Ensure translations don't break at install time
  $t = get_t();
  $requirement['title'] = $t('PHP SOAP extension');
  $requirement['description'] = $t('The PHP SOAP extension must be enabled to use the web service client SOAP support module.');
  if (extension_loaded('soap')) {
    $requirement['value'] = $t('Enabled');
    $requirement['severity'] = REQUIREMENT_OK;
  }
  else {
    $requirement['value'] = $t('Missing');
    $requirement['severity'] = REQUIREMENT_ERROR;
  }
  return array(
    'php_soap' => $requirement,
  );
}