You are here

sms_twilio.install in Twilio SMS Integration 7

Same filename and directory in other branches
  1. 8 sms_twilio.install
  2. 6 sms_twilio.install
  3. 7.2 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['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;
}

Functions