Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2006 at 03:57 UTC
Updated:
30 Sep 2008 at 03:31 UTC
It would be nice if there was a module hook for setting template variables. Currently while you can write a module that provides theming options to nodes and blocks, you need to add/modify templates.php if you want to make those new values available as variables to the template (node.tpl.php, page.tpl.php etc.). It would be handy if there was a hook for template variables could be set from the module meaning users would not need modify their templates.php file.
Comments
Comment #1
magico commented+1
Comment #2
bradlis7 commentedJust wondering, what's something this might be used for?
Comment #3
bradlis7 commentedWell, I'm guessing it has to do with NiftyCorners... a module to adjust a theme from what the name says.
Hm, it seems like this would be better as a snippet in the handbook than as a module... but I'm not for sure on that. If so, there wouldn't be a need for this. That's my $.02.
Comment #4
nevets commentedThere have been no shortage of posts along the lines "I would like to hide X when displaying this node (or maybe page)". X might be something like the left or right column, the footer, header, etc. It is easy enough with form API to allow the user to make this choices and while one can embed setting values in the theme withh function calls, it would be nice to do be able to do this through a hook or maybe call to a theme function.
Comment #5
pasqualleComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.