Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was trying to create comment using Services 3 comment API. But the field I was submitting wasn't retaining the values when it comes to validations. So, I made a small change in drupal_process_form
of the form.inc file.
if(!isset($form_state['values'])){
$form_state['values'] = array();
}
Comment | File | Size | Author |
---|---|---|---|
#2 | form.inc_.patch | 519 bytes | SkyBuzz |
Comments
Comment #2
SkyBuzz CreditAttribution: SkyBuzz commentedThe changes in the patch file.