Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
theme system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2006 at 00:43 UTC
Updated:
19 Sep 2006 at 10:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
Tobias Maier commentedsince I cant see which one is the right one and it looks like that theme_closure() only contains logic
I replaced
theme('closure')withtheme_closure()Comment #2
tenrapid commentedI think
theme('closure')is right. It's a regular theme function and thus should be possible to override. The base function in theme.inc simply collects and concatenates the output of the closure hooks at the moment but one would like to process this further (putting it in a table, ...).Comment #3
flk commentedI would have to agree with tenrapid.
theme('closure') seems more right to me then theme_closure(). also it seems more in uniform with the other theme calls.
also wouldnt it be better to bring themes.inc inline with phptemplate.engine rather than the other way round?
btw whilst reading the api.d.o and found this:
so in theory theme.inc should be calling theme('closure') rather than theme_closure()...but then again it could be said theme.inc is not a module.
Anyways i made a patch to change theme_closure() to theme('closure') in theme.inc
Comment #4
flk commentedchange status
Comment #5
dries commentedCommitted to CVS HEAD. Thanks.
Comment #6
killes@www.drop.org commentedalso to 4.7
Comment #7
(not verified) commented