function uc_recurring_subscription_requirements in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 modules/uc_recurring_subscription/uc_recurring_subscription.install \uc_recurring_subscription_requirements()
Implements hook_requirements().
File
- modules/
uc_recurring_subscription/ uc_recurring_subscription.install, line 11 - Installs the Recurring Subscription module.
Code
function uc_recurring_subscription_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time.
$t = get_t();
if ($phase == 'runtime') {
if (!function_exists('uc_attribute_load_multiple')) {
$requirements['uc_recurring_subscription'] = array(
'title' => $t('Subscription Manager'),
'value' => $t('Need a newer version of Ubercart.'),
'severity' => REQUIREMENT_ERROR,
'description' => $t('This module requires a newer version of ubercart, read the <a href="@readme">README.txt</a>', array(
'@readme' => url(drupal_get_path('module', 'uc_recurring_subscription') . '/README.txt'),
)),
);
}
}
return $requirements;
}