[drupal-devel] [feature] Centralize print theme page
drupal-devel at drupal.org
Wed Apr 20 13:10:31 UTC 2005
Issue status update for http://drupal.org/node/20910
Component: base system
Category: feature requests
Assigned to: chx
Reported by: chx
Updated by: chx
Attachment: http://drupal.org/files/issues/output.patch (1.27 KB)
The patch is very simple but opens a lot of possibilites. Like you can
put the output of any Drupal function into a block. Another step
towards multi region pages.
This patch does not even break backwards compatibility: if you do not
want to print anything or want to handle your output, fine, return
nothing from the callback as you do now. However, you do not need to
write print theme('page', ...); anymore, just return it, Drupal will
theme it for you.
I'm posting two patches. The first is the very simple, functional one.
The second, however is just the result of a preg change.
More information about the drupal-devel