Quantcast
Channel: Override module's template in theme - Drupal Answers
Browsing all 3 articles
Browse latest View live

Answer by Saud Alfadhli for Override module's template in theme

Just to mention here that you can even change the template file name also if you implement template_preprocess_page() for your theme.So, you can add a new theme suggestion like this:/** * Implements...

View Article



Answer by Mike Vranckx for Override module's template in theme

You can override tpl files defined in modules inside your active theme (under the templates directory). But Drupal will look for a file name using the defined theme key name and not the defined...

View Article

Override module's template in theme

Suppose i have this hook_theme() in my module, choosing a template inside the module:/** * Implements hook_theme(). */ function module_theme($existing, $type, $theme, $path) { return...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images