Created
March 9, 2017 19:48
-
-
Save iefrati/15c2a17b7c4571c77645dfb55f3a58a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function submenu_reorder_form_alter(&$form, $form_state) { | |
//todo check form_state and verify this is a submenu_reorder | |
foreach (element_children($form['menu_items']) as $id) { | |
$title = $form['menu_items'][$id]['link_title']['#markup']; | |
$form['menu_items'][$id]['link_title']['#markup'] = '<a href="www.google.com">'. $title . '</a>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment