You are here

function shoutbox_rules_add_action_form in Shoutbox 6.2

Builds the form for adding a shout.

File

shoutbox_rules/shoutbox_rules.module, line 114

Code

function shoutbox_rules_add_action_form($settings, &$form) {
  $settings += array(
    'poster' => '',
    'shout' => '',
  );
  $form['settings']['poster'] = array(
    '#type' => 'textfield',
    '#title' => t('Poster username'),
    '#autocomplete_path' => 'user/autocomplete',
    '#description' => t('If you leave this blank, the current user will be assumed.'),
    '#default_value' => $settings['poster'],
  );
  $form['settings']['shout'] = array(
    '#type' => 'textfield',
    '#title' => t('Shout'),
    '#default_value' => $settings['shout'],
  );
}