You are here

function uc_recurring_feature_form_validate in UC Recurring Payments and Subscriptions 6

File

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

Code

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