You are here

function guestbook_form_comment_form in Guestbook 5

Same name and namespace in other branches
  1. 5.2 guestbook.module \guestbook_form_comment_form()
  2. 6.2 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 566

Code

function guestbook_form_comment_form($uid, $entry) {
  $form = array();
  $form['comment'] = array(
    '#type' => 'textfield',
    '#default_value' => check_plain($entry['comment']),
    '#size' => 64,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Comment'),
  );
  $form['entry_id'] = array(
    '#type' => 'value',
    '#value' => $entry['id'],
  );
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $uid,
  );
  return $form;
}