By netron on
I might be going about this the wrong way, but bear with me.
say i have primary links sidebar block containing
Home
Football
Archive
and my domain is "football.domain"
and i'd like to change Football to "Rugby" (plus the link) if the domain is "rugby.domain"
hook menu alter doesnt appear to work as that doesnt contain the primary links data ( from within mymodule_menu_alter)
and hook_block doesnt work, as thats expecting me to customise the blocks i have declared within mymodule
is there a way of piping in the array contents of primary links , altering the content and then pushing it out to the primary links sidebar block?
any suggestions welcome.
Comments
tried various menu_*
tried various menu_* functions, but they seem to be one way - i.e.. outputting menu data.
is there a primary links func i can use that can hide/unhide primary menu links? or maybe customise the links on the fly from a module?