function panels_comment_form in Panels 6.2
1 string reference to 'panels_comment_form'
- panels_content_node_comment_form in content_types/
node_comment_form.inc
File
- content_types/
node_comment_form.inc, line 62
Code
function panels_comment_form(&$form_state, $edit) {
$form = comment_form($form_state, $edit);
// force the form to come back to here.
$url = parse_url($_GET['q']);
$path = $url['path'];
$form['#action'] = url($path, array(
'fragment' => 'new',
));
$form['#redirect'] = array(
$path,
NULL,
'new',
);
$form['#validate'][] = 'comment_form_validate';
$form['#submit'][] = 'comment_form_submit';
return $form;
}