* Fixed the Inactive Parent anchor name so they all are unique.

* Fixed the Devel menu name and identifier.
* Added support for users to select multiple menus.
This commit is contained in:
Alexis Wilke
2010-05-16 10:45:25 +00:00
parent d9f856a075
commit 4430806082
5 changed files with 49 additions and 6 deletions

View File

@@ -42,10 +42,12 @@ function simplemenu_theme_registry_alter(&$theme_registry) {
*/
function simplemenu_theme_menu_item_link($link) {
global $theme;
static $cnt = 0;
// this is a drop down?
if (!empty($link['has_children']) && variable_get('simplemenu_running', FALSE)) {
return '<a name="menu-id-' . $link['mlid'] . '">' . $link['title'] . '</a>';
++$cnt;
return '<a name="menu-id-' . $cnt . '">' . $link['title'] . '</a>';
}
// got a theme function?