Skip to content
Snippets Groups Projects
Commit eb0839b9 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #480426 by JamesAn: converted to drupal_static().

parent 2af96209
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -74,7 +74,7 @@ function menu_overview_form(&$form_state, $menu) {
* Recursive helper function for menu_overview_form().
*/
function _menu_overview_tree_form($tree) {
static $form = array('#tree' => TRUE);
$form = &drupal_static(__FUNCTION__, array('#tree' => TRUE));
foreach ($tree as $data) {
$title = '';
$item = $data['link'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment