You are here

sms_twilio.install in Twilio SMS Integration 7.2

Same filename and directory in other branches
  1. 8 sms_twilio.install
  2. 6 sms_twilio.install
  3. 7 sms_twilio.install

File

sms_twilio.install
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['sms_twilio']['severity'] = REQUIREMENT_ERROR;
    $requirements['sms_twilio']['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;
}

Functions