Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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