You are here

function uc_recurring_admin_edit_form_validate in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 7.2 uc_recurring.admin.inc \uc_recurring_admin_edit_form_validate()

File

./uc_recurring.admin.inc, line 272
Recurring payments administration page callbacks and form builder functions.

Code

function uc_recurring_admin_edit_form_validate($form, &$form_state) {
  if (empty($form_state['values']['unlimited_intervals']) && 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.'));
  }
}