Skip to main content
amateur barista's user avatar
amateur barista's user avatar
amateur barista's user avatar
amateur barista
  • Member for 13 years, 9 months
  • Last seen more than a month ago
  • New York, NY
revised
Loading…
revised
How to make strings from templates translatable on all pages they appear?
Add user provided clarification to question about template strings
Loading…
Loading…
revised
Loading…
awarded
Loading…
Loading…
Loading…
comment
awarded
Loading…
comment
tpl.php files in a module directory
If Drupal core developers wanted you to use _theme_process_registry, they would not have "prepended" that function with an underscore.
comment
How to tell Drupal to look for templates in module directory?
Confirming - that is a D6 solution (drupal.org/node/645716) for a D7 question. Hence the -1 stays as a warning on the road to weary travelers. D6 actually had a better solution for that (just modifying theme paths) and the module would get scanned for template suggestions as well - and I mean, all template suggestions - but that trick is no longer valid in D7.
comment
How to tell Drupal to look for templates in module directory?
NO, -1 points. That solution is so old (2009), I'm not even sure it was meant for D7. While your old solution is tailored for Views, it is not ideal for non-Views situations where developers may want to pack for more than 1 default template per theme key in their modules. Imagine implementing your solution for 100 dynamic theme suggestions for a single theme key. Applied outside of a Views context I would call your solution a counter-pattern.
awarded
awarded
awarded
awarded
1 2
3
4 5
28