function guestbook_form_comment_form in Guestbook 5.2
Same name and namespace in other branches
- 5 guestbook.module \guestbook_form_comment_form()
- 6.2 guestbook.module \guestbook_form_comment_form()
- 6 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 630
Code
function guestbook_form_comment_form($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/' . $uid;
return $form;
}