sms_twilio.install in Twilio SMS Integration 8
Same filename and directory in other branches
File
sms_twilio.installView 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
Name | Description |
---|---|
sms_twilio_requirements | Implements hook_requirements(). |