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.
Could the test for $form['actions'] be changed so that the test is on $form['actions']['#type']? I am getting this error on a multistep form, so it could affect others unexpectedly:
/**
* Implements hook_form_alter().
*/
function bootstrap_form_alter(&$form, &$form_state, $form_id) {
// Id's of forms that should be ignored
// Make this configurable?
$form_ids = array(
'node_form',
'system_site_information_settings',
'user_profile_form',
'node_delete_confirm',
);
// Only wrap in container for certain form
if (isset($form['#form_id']) && !in_array($form['#form_id'], $form_ids) && !isset($form['#node_edit_form']) && isset($form['actions']['#type']) && ($form['actions']['#type'] == 'actions')) {
$form['actions']['#theme_wrappers'] = array();
}
}
Comments
Comment #1
markhalliwellScripted response: This issue has been closed while cleaning up the issue queue. This has likely already been addressed in 7.x-3.x. If it has not, please create a new issue describing the exact issue with that version. The 7.x-2.x branch currently only receives security fixes.