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.
By jesterFortyEight on
In a vertical tab form the path to a form input is
$form['vertical_tabs_card_details']['card_image'] = array(
the documentation uses a simple key value for the file_save_upload function
as in
file_save_upload ('card_image');
which does not work for the tabbed field
nor does
file_save_upload("'vertical_tabs_card_details']['card_image'");
or any other values i have tried.
How should it be implemented?