September 2007
2 posts
DO NOT TRY TO CHANGE THE SUBMIT #VALUE FOR A NODE...
It cannot be done, young jedi.
You MUST use form_alter.
The Sensitive Programmer Part 2: #type=>'Submit'...
I don’t know why I have so much trouble lower-casing the word submit, but it will *really* bite you in the ass if you try to use it as a #type in a form statement.
Why? Well, $form[‘test’]=array(‘#type’=>’Submit’,’#value’=>’Test’); will HAPPILY render a submit button for you — it just won’t submit your form via...