You are here

akamai.install in Akamai 6

File

akamai.install
View source
<?php

/**
 * Implementation of hook_requirements().
 */
function akamai_requirements($phase) {
  $requirements = array();
  $t = get_t();
  $requirements['SoapClient']['title'] = $t('SoapClient class');
  if (!class_exists('SoapClient')) {
    $requirements['SoapClient']['value'] = $t('Not installed');
    $requirements['SoapClient']['severity'] = REQUIREMENT_ERROR;
    $requirements['SoapClient']['description'] = $t('The SoapClient library is not installed. Either install the php-soap extension, or otherwise make the library available to PHP.');
  }
  else {
    $requirements['SoapClient']['value'] = $t('Installed');
    $requirements['SoapClient']['severity'] = REQUIREMENT_OK;
  }
  return $requirements;
}

Functions

Namesort descending Description
akamai_requirements Implementation of hook_requirements().