What is the equivalent of theme_menu_item in Drupal 7?
Question
I know that in drupal 6 exist: theme_menu_item, but in drupal 7 there is not. Is there any replacements so that I modify the output for main system menu ?
Actually I want to do a kind of filter of the menu items depending some criteria, which I will set in the function.
Solution
Looking at the function that called the theme function theme_menu_item()
(menu_tree_output()), and comparing it with the Drupal 7 version of the same function, I can say that the equivalent of theme_menu_item()
is theme_menu_link().
OTHER TIPS
The theme_menu_item() function has been replaced by theme_menu_link(). For details on this change, and all other changes made to the theme layer between Drupal 6 and 7, see the Converting 6.x themes to 7.x page. There is also a corresponding module conversion page.