You are here

function signup_broadcast_form_submit in Signup 6.2

Same name and namespace in other branches
  1. 5.2 signup.module \signup_broadcast_form_submit()
  2. 6 includes/broadcast.inc \signup_broadcast_form_submit()
  3. 7 includes/broadcast.inc \signup_broadcast_form_submit()

Submit callback for the signup broadcast form.

Parameters

$form: The broadcast form being submitted.

$form_state: The state of the submitted form (including values).

See also

signup_send_broadcast()

File

includes/broadcast.inc, line 97
Code related to sending signup broadcast messages.

Code

function signup_broadcast_form_submit($form, &$form_state) {
  global $user;
  if (user_access('administer site configuration')) {
    $from = $form_state['values']['from'];
  }
  else {
    $from = $user->mail;
  }
  signup_send_broadcast($form_state['values']['nid'], $form_state['values']['subject'], $form_state['values']['message'], $from, !empty($form_state['values']['copy']));
}