rsvp_reply_form

Definition

rsvp_reply_form($hash)
rsvp/rsvp.module, line 893

Description

  • Displays html formatted invite reply status information for a user's invite
*
  • *

Parameters

$hash The hash value of the invite.

  • @return html formatted view of the requested invite status.

Code

<?php
function rsvp_reply_form($hash) {
  $invite = _rsvp_get_invite($hash);
  $responses = array('yes' => t('Yes'), 'no' => t('No'), 'maybe' => t('Maybe'));
  if ($invite->response == 'none') {
    $responses['none'] = t('None');
  }

  $form = array();
  $form['invite_reply'] = array(
      '#type' => 'select',
      '#title' => t('Your Reply'),
      '#default_value' => $invite->response,
      '#options' => $responses,
      '#description' => t('Select your response to the invitation here.')
      );
  $form['hash'] = array(
      '#type' => 'hidden',
      '#value' => $hash
      );

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

  return $form;
}
?>