You are here

function makemeeting_sendfw_form_validate in Make Meeting Scheduler 7

Same name and namespace in other branches
  1. 6 makemeeting.module \makemeeting_sendfw_form_validate()

makemeeting_sendfw_form_validate()

Return value

void

File

./makemeeting.module, line 1166
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,
        )));
      }
    }
  }
}