Timeline for Wanna save text_format custom form in comment
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 17:45 | comment | added | guish |
Haha, your comment gave me an illumination : it was $form_state['values']['comment_body']['value'] missed this final value so, in the submit it looks like : $comment->comment_body['und'][0]['value'] = $form_state['values']['comment_body']['value']; (same thing for format). Thanks you @Clive
|
|
Apr 13, 2017 at 16:46 | comment | added | Clive♦ | And you've confirmed that the form state array contains the elements you're trying to access? | |
Apr 13, 2017 at 16:28 | review | Low quality posts | |||
Apr 13, 2017 at 16:29 | |||||
Apr 13, 2017 at 16:22 | comment | added | guish |
Even with this line, it save me an empty value. Maybe something to know, when in my validate I put a form_set_error in $form_state['values']['comment_body'] == '' it doesn't pass even if i let the comment input form empty.
|
|
Apr 13, 2017 at 16:09 | history | answered | Clive♦ | CC BY-SA 3.0 |