A particular module has a theme function (theme_nice_menus_build()) that I'd like to give a slightly different output; I'd rather not modify the .module file to be able to continue updating the module when new versions are available.

Is it possible to modify that function from another custom module or from template.php?


All theme functions can be overwritten in template.php by replacing theme with phptemplate. so your function in template.php should be like


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.