You are here

function guestbook_form_comment_form in Guestbook 7.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.2 guestbook.module \guestbook_form_comment_form()
  4. 6 guestbook.module \guestbook_form_comment_form()
1 string reference to 'guestbook_form_comment_form'
guestbook_form_comment in ./guestbook.module

File

./guestbook.module, line 826

Code

function guestbook_form_comment_form($form, $form_state, $uid, $entry) {
  $form['comment'] = array(
    '#type' => 'text_format',
    '#default_value' => $entry['comment'],
    '#format' => $entry['comment_format'],
  );
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['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;
}