Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
What is the accepted method of collecting a list of values from a textarea in hook_settings and recording the list of values as a serialised array in the variables table? Or is it better to just save them as an unserialised string, as block.module does, for example?
Hello,
I wanted to uprgrade existing 4.6 ecommerce module to the new forms API in 4.7.
I have used formupdater.module and documentation, but not all aspect of using new API is clear to me.
Please tell me how to put custom output to the $form array i.e in the store_settings function
all I want to return is the $form array as the documentation suggest but there is still need to add additional output like: