You are here

function nodejs_notify_settings_form in Node.js integration 6

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

Settings form

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

File

nodejs_notify/nodejs_notify.module, line 64

Code

function nodejs_notify_settings_form() {
  $form['settings'] = array(
    '#type' => 'fieldset',
    '#title' => t('Node.js Notify Settings'),
  );
  $form['settings']['notification_lifetime'] = array(
    '#type' => 'textfield',
    '#title' => t('Notification Lifetime'),
    '#description' => t('The number of seconds a notification will live before fading automatically. (Set to 0 for sticky notifications that do not fade.)'),
    '#default_value' => variable_get('nodejs_notify_notification_lifetime_seconds', 3),
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit Configuration'),
    '#submit' => array(
      'nodejs_notify_settings_form_submit',
    ),
  );
  return $form;
}