You are here

sms_twilio.install in Twilio SMS Integration 8

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

File

sms_twilio.install
View source
<?php

/**
 * Implements hook_requirements().
 */
function sms_twilio_requirements($phase) {
  $requirements = [];
  if (!class_exists('\\Twilio\\Rest\\Client')) {
    $requirements['sms_twilio_dependencies'] = [
      'title' => t('Twilio'),
      'description' => t('Twilio has unmet Composer dependencies. Read the <a href="@url">documentation</a> on how to install them.', [
        '@url' => 'https://www.drupal.org/node/2627292',
      ]),
      'severity' => REQUIREMENT_ERROR,
    ];
  }
  return $requirements;
}

Functions

Namesort descending Description
sms_twilio_requirements Implements hook_requirements().