You are here

function nodejs_notify_broadcast_form_submit in Node.js integration 7

Same name and namespace in other branches
  1. 6 nodejs_notify/nodejs_notify.module \nodejs_notify_broadcast_form_submit()

The submit handler for the form, after validated.

1 string reference to 'nodejs_notify_broadcast_form_submit'
nodejs_notify_broadcast_form in nodejs_notify/nodejs_notify.module
Form builder for broadcast form.

File

nodejs_notify/nodejs_notify.module, line 138

Code

function nodejs_notify_broadcast_form_submit(&$form, &$form_state) {
  nodejs_broadcast_message($form_state['values']['broadcast_subject'], $form_state['values']['broadcast_message']);
  drupal_set_message(t("Message broadcast to all users"));
}