View source
<?php
function sms_twilio_requirements($phase) {
$t = get_t();
$has_curl = function_exists('curl_init');
$requirements['curl'] = array(
'title' => $t('cURL'),
'value' => $has_curl ? $t('Enabled') : $t('Not found'),
);
if (!$has_curl) {
$requirements['uc_securepayau_curl']['severity'] = REQUIREMENT_ERROR;
$requirements['uc_securepayau_curl']['description'] = $t("SMS twilio requires the PHP <a href='!curl_url'>cURL</a> library.", array(
'!curl_url' => 'http://php.net/manual/en/curl.setup.php',
));
}
return $requirements;
}