You are here

function nodejs_notify_settings_form in Node.js integration 7

Same name and namespace in other branches
  1. 6 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 72

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' => 'Notification Lifetime',
    '#description' => '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' => 'Submit Configuration',
    '#submit' => array(
      'nodejs_notify_settings_form_submit',
    ),
  );
  return $form;
}