You are here

function nodejs_notify_broadcast_form in Node.js integration 6

Same name and namespace in other branches
  1. 7 nodejs_notify/nodejs_notify.module \nodejs_notify_broadcast_form()

Form builder for broadcast form.

1 string reference to 'nodejs_notify_broadcast_form'
nodejs_notify_menu in nodejs_notify/nodejs_notify.module
Implements hook_menu().

File

nodejs_notify/nodejs_notify.module, line 104

Code

function nodejs_notify_broadcast_form() {
  $form['broadcast_form'] = array(
    '#type' => 'fieldset',
    '#title' => t('System-wide Broadcast Notification'),
  );
  $form['broadcast_form']['broadcast_subject'] = array(
    '#type' => 'textfield',
    '#title' => t('Broadcast notification subject'),
    '#required' => TRUE,
  );
  $form['broadcast_form']['broadcast_message'] = array(
    '#type' => 'textarea',
    '#title' => t('Broadcast notification message'),
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Broadcast'),
    '#submit' => array(
      'nodejs_notify_broadcast_form_submit',
    ),
  );
  return $form;
}