You are here

function uc_recurring_feature_form_validate in Ubercart 5

File

payment/uc_recurring/uc_recurring.module, line 477
Allows you to add a recurring fee to a product/SKU to handle subscription type services.

Code

function uc_recurring_feature_form_validate($form_id, $form_values) {
  if (intval($form_values['number_intervals']) <= 0) {
    form_set_error('number_intervals', t('Only positive whole number values are accepted for the number of billing periods.'));
  }
}