Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
http://api.drupal.org/api/HEAD/function/phptemplate_page
http://api.drupal.org/api/HEAD/function/theme_page
theme_page() calls theme_closure();
directly
phptemplate_page() calls theme('closure')
one of both does it the false way...
Comment | File | Size | Author |
---|---|---|---|
#3 | theme_closure_0.patch | 532 bytes | flk |
#1 | theme_closure.patch.txt | 980 bytes | Tobias Maier |
Comments
Comment #1
Tobias Maier CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: flk commentedchange status
Comment #5
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #6
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedalso to 4.7
Comment #7
(not verified) CreditAttribution: commented