Timeline for Using hook_theme_registry_alter()
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 27, 2012 at 8:29 | vote | accept | Somya Gupta | ||
Mar 28, 2012 at 18:52 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
added 22 characters in body
|
Mar 28, 2012 at 12:07 | comment | added | Somya Gupta | yes I have used hook_form_form_id_alter in my module for menu edit item form. With the help of this hook I implemented the user interface for my module. Just like in block module there are visibility settings option by which the user can choose the path on which the menu link has to be active. | |
Mar 28, 2012 at 11:42 | comment | added | WestieUK | I dont think there is a another hook which would do the same thing as it would need to have the full $theme_registry array with additional properties added by _theme_process_registry(). have you tried looking at altering the menu's themselves? You could try hook_menu_link_alter with some if statements to unset menu items? | |
Mar 28, 2012 at 11:19 | comment | added | Somya Gupta | yes I have created a custom module named aml and have put this code in .module file. Tell me if there is any other option to override theme function in a module file instead altering theme registry as I want to provide page specific visibility to menu items through my module | |
Mar 28, 2012 at 11:08 | comment | added | WestieUK | Have you cleared cache? You must clear cache each time with this function. Also is menu_link in the $them_registry array? Also to confirm this code will need to be in a custom module named aml not in the template.php | |
Mar 28, 2012 at 10:15 | comment | added | Somya Gupta | Hey I have done as you have mentioned. Overridden ['menu_link']['function'] = 'theme_menu_link' and changed the function name from theme_menu_link to aml_menu_link() and dispalyed some simple text but still not getting any output | |
Mar 28, 2012 at 7:49 | history | answered | WestieUK | CC BY-SA 3.0 |