function ajax_comment_ajax_alter in Ajax 6
Enables the comment form
Parameters
$form Assoc:
$form_id String:
Return value
Bool
File
- plugins/
comment/ ajax_comment.module, line 20
Code
function ajax_comment_ajax_alter(&$form, &$form_state, $form_id) {
if ($form_id === 'comment_form') {
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
'#weight' => 19,
);
}
return TRUE;
}