You are here

function spaces_shoutbox_ajaxform in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces_shoutbox/spaces_shoutbox.module \spaces_shoutbox_ajaxform()

Shoutbox form definition

1 string reference to 'spaces_shoutbox_ajaxform'
spaces_shoutbox_block in spaces_shoutbox/spaces_shoutbox.module
Implementation of hook_block()

File

spaces_shoutbox/spaces_shoutbox.module, line 131

Code

function spaces_shoutbox_ajaxform() {
  $form = array(
    '#action' => null,
    'shout' => array(
      '#type' => 'textfield',
      '#size' => 20,
      '#required' => true,
    ),
    'submit' => array(
      '#type' => 'button',
      '#value' => t('Shout'),
    ),
  );
  $form['#theme'] = '';

  // force default renderer
  return $form;
}