function uc_recurring_install in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 6 uc_recurring.install \uc_recurring_install()
- 7.2 uc_recurring.install \uc_recurring_install()
Implementation hook_install().
File
- ./
uc_recurring.install, line 232 - Installs the Recurring Fee module.
Code
function uc_recurring_install() {
drupal_install_schema('uc_recurring');
// Add default extensions periods.
$three_days = strtotime("+3 days", 0);
$five_days = strtotime("+5 days", 0);
db_query("INSERT INTO {uc_recurring_extensions} (pfid, rebill_attempt, time_to_extend) VALUES (NULL, 0, %d), (NULL, 1, %d), (NULL, 2, 0)", $three_days, $five_days);
}