Home ›
How to define a theme function to replace a core or another module's existing theme function (in a module)How to define a theme function to replace a core or another module's existing theme function (in a module)
Submitted by Benjamin Melançon on April 7, 2011 - 1:00pm
Searched words:
theme functions in modules Drupal 7
In a theme, you just override the target function.
In a module, you need to jump through some hoops.
See method 2 at http://definitivedrupal.org/resource/brutally-removing-extra-divs-preprocess-suggestions
More like this
- Adding third-party code to Agaric's core site repository: Print module's PDF functionality
- Which is faster to check, Drupal's module_exists or PHP's function_exists?
- Use hook_theme for new theming functions and templates; use hook_theme_registry_alter to take over existing ones
- Find the function definition of the current function or find uses of a given function
- Simplify Drupal by Building Core Features with Building Blocks


Comments
Post new comment