function sms_twilio_requirements in Twilio SMS Integration 7
Same name and namespace in other branches
- 8 sms_twilio.install \sms_twilio_requirements()
- 6 sms_twilio.install \sms_twilio_requirements()
- 7.2 sms_twilio.install \sms_twilio_requirements()
File
- ./
sms_twilio.install, line 3
Code
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;
}