rsvp_attendee_form

Definition

rsvp_attendee_form($rid)
rsvp/rsvp.module, line 608

Description

  • Displays the rsvp attendee editing form
*
  • *

Parameters

$rid The id of the rsvp instance to edit.

  • @return html formatted rsvp attendee edit form.

Code

<?php
function rsvp_attendee_form($rid) {
  $rsvp = rsvp_load($rid);
  drupal_set_title($rsvp->name);
  $form = array();
  $form['invite_list'] = array(
      '#type' => 'textarea',
      '#title' => t('Add Attendees'),
      '#default_value' => '',
      '#cols' => 60,
      '#rows' => 5,
      '#description' => t('Enter email addresses or usernames each in a separate line.')
      );
  $form['rid'] = array(
    '#type' => 'hidden',
    '#value' => $rid,
  );

  $form['op'] = array(
      '#type' => 'submit',
      '#value' => t('Send Invites'),
      );

  return $form;
}
?>