function nodejs_notify_broadcast_form in Node.js integration 7
Same name and namespace in other branches
- 6 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 112
Code
function nodejs_notify_broadcast_form() {
$form['broadcast_form'] = array(
'#type' => 'fieldset',
'#title' => 'System-wide Broadcast Notification',
);
$form['broadcast_form']['broadcast_subject'] = array(
'#type' => 'textfield',
'#title' => 'Broadcast notification subject',
'#required' => TRUE,
);
$form['broadcast_form']['broadcast_message'] = array(
'#type' => 'textarea',
'#title' => 'Broadcast notification message',
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Broadcast',
'#submit' => array(
'nodejs_notify_broadcast_form_submit',
),
);
return $form;
}