function guestbook_form_comment_form in Guestbook 6
Same name and namespace in other branches
- 5.2 guestbook.module \guestbook_form_comment_form()
- 5 guestbook.module \guestbook_form_comment_form()
- 6.2 guestbook.module \guestbook_form_comment_form()
- 7.2 guestbook.module \guestbook_form_comment_form()
1 string reference to 'guestbook_form_comment_form'
File
- ./
guestbook.module, line 600
Code
function guestbook_form_comment_form($form_state, $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;
}