function guestbook_form_comment_form in Guestbook 7.2
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()
- 6 guestbook.module \guestbook_form_comment_form()
1 string reference to 'guestbook_form_comment_form'
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;
}