2006-07-13 13:14:25 +00:00
<?php
2009-05-13 19:42:18 +00:00
/**
* @file
* Install, update and uninstall functions for the aggregator module.
*/
2013-05-25 20:12:45 +00:00
use Drupal\Core\Language\Language;
2009-05-13 19:42:18 +00:00
2012-11-30 01:26:33 +00:00
/**
* Implements hook_requirements().
*/
function aggregator_requirements($phase) {
$has_curl = function_exists('curl_init');
$requirements = array();
$requirements['curl'] = array(
2013-06-17 13:35:07 +00:00
'title' => t('cURL'),
'value' => $has_curl ? t('Enabled') : t('Not found'),
2012-11-30 01:26:33 +00:00
);
if (!$has_curl) {
$requirements['curl']['severity'] = REQUIREMENT_ERROR;
2013-06-17 13:35:07 +00:00
$requirements['curl']['description'] = t('The Aggregator module could not be installed because the PHP <a href="@curl_url">cURL</a> library is not available.', array('@curl_url' => 'http://php.net/manual/curl.setup.php'));
2012-11-30 01:26:33 +00:00
}
return $requirements;
}