function uc_recurring_admin_edit_form_validate in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 uc_recurring.admin.inc \uc_recurring_admin_edit_form_validate()
@todo Please document this function.
See also
File
- ./
uc_recurring.admin.inc, line 334 - Recurring payments administration page callbacks and form builder functions.
Code
function uc_recurring_admin_edit_form_validate($form, &$form_state) {
//dpm($form_state);
if (($form_state['values']['unlimited_intervals'] == 0 || empty($form_state['values']['unlimited_intervals'])) && intval($form_state['values']['number_intervals']) < 1) {
form_set_error('number_intervals', t('Only positive whole number values are accepted for the number of billing periods.'));
}
}