function firebase_requirements in Firebase Push Notification (FCM) 7
Implements hook_requirements().
File
- ./
firebase.install, line 6
Code
function firebase_requirements($phase) {
// We use cURL in order to send push notifications.
// Checks if cURl is available.
$requirements = array();
$t = get_t();
if ($phase == 'install' && !in_array('curl', get_loaded_extensions())) {
$requirements['firebase'] = array(
'title' => $t('cURL'),
'description' => $t('Firebase needs cURL enabled.'),
'value' => $t('not available'),
'severity' => REQUIREMENT_ERROR,
);
}
return $requirements;
}