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