Active
Project:
Ajax
Version:
6.x-1.14
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2009 at 15:34 UTC
Updated:
25 Jan 2012 at 14:27 UTC
I'm already alter the form like this but the value not change..
function custom_comment_form_alter(&$form, $form_state, $form_id) {
$form['submit']['#value'] = 'Post';
}
}
Thanks
Comments
Comment #1
akongz commentedThis case happen if I active the ajax plugin comment...
Comment #2
walker2238 commentedYou need to change your module weight to be higher than the ajax module.
Comment #3
Pls commentedYes, as pointed out in #2, ajax module (actually ajax_comment) uses ajax_comment_ajax_alter for comment_form, so you have to adjust your module weight to be higher than ajax.module. Here is more info about to change modules weight: http://drupal.org/node/110238. Cheers!