You are here

function guestbook_form_comment_form in Guestbook 6.2

Same name and namespace in other branches
  1. 5.2 guestbook.module \guestbook_form_comment_form()
  2. 5 guestbook.module \guestbook_form_comment_form()
  3. 6 guestbook.module \guestbook_form_comment_form()
  4. 7.2 guestbook.module \guestbook_form_comment_form()
1 string reference to 'guestbook_form_comment_form'
guestbook_form_comment in ./guestbook.module

File

./guestbook.module, line 719

Code

function guestbook_form_comment_form($form_state, $uid, $entry) {
  $form = array();
  $form['comment'] = array(
    '#type' => 'textarea',
    '#default_value' => $entry['comment'],
    '#description' => variable_get('guestbook_filter_tips', TRUE) ? _guestbook_form_filter_tips() : NULL,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Reply'),
  );
  $form['entry_id'] = array(
    '#type' => 'value',
    '#value' => $entry['id'],
  );
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $uid,
  );
  $form['#redirect'] = !empty($_GET['destination']) ? $_GET['destination'] : guestbook_path($uid);
  return $form;
}