function makemeeting_sendfw_form_validate in Make Meeting Scheduler 6
Same name and namespace in other branches
- 7 makemeeting.module \makemeeting_sendfw_form_validate()
makemeeting_sendfw_form_validate()
Return value
void
File
- ./
makemeeting.module, line 1069 - Make Meeting module
Code
function makemeeting_sendfw_form_validate($form_id, $form_values) {
for ($i = 0; $i < 5; $i++) {
if (!empty($form_values['values']['sendfw']['address_' . $i])) {
if (!valid_email_address($form_values['values']['sendfw']['address_' . $i])) {
form_set_error('sendfw[address_' . $i . ']', t('E-mail #@count is not valid', array(
"@count" => $i + 1,
)));
}
}
}
}