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
/** | |
* Implements hook_form_alter(). | |
*/ | |
function mymodule_form_alter(&$form, &$form_state, $form_id) { | |
if ($form_id == 'submenu_reorder_node_page_reorder') { | |
foreach (element_children($form['menu_items']) as $id) { | |
$menu_link = menu_link_load($id); | |
$url = url($menu_link["link_path"]); | |
$form['menu_items'][$id]['link_title']['#markup'] = '<a href="'. $url .'">'. $menu_link["link_title"] . '</a>'; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment