[drupal-devel] Page layout workflow mockup
dries at buytaert.net
Tue Mar 22 08:37:43 UTC 2005
On 21 Mar 2005, at 16:09, Karoly Negyesi wrote:
> I like this one.
> I have an idea which would help implementing this. There are a lot of
> functions in Drupal which ends with print theme('page', $output);
> These shall be changed to return $output; and
> should be changed, too:
> - call_user_func_array($menu['items'][$mid]['callback'], $arguments);
> - return MENU_FOUND;
> + return call_user_func_array($menu['items'][$mid]['callback'],
> and then index.php shall have a default clause to print theme('page',
> $status); -- well, let's rename $status to $return.
> After this you may call a page function via module_invoke and put it's
> output into a block.
I don't understand your last sentence. Mind to elaborate on that?
As far as I can see, the suggested approach might make the code
slightly smaller (not in terms of lines, but in terms of the number of
characters/line). I fail to see how this would help implement Chris'
Dries Buytaert :: http://www.buytaert.net/
More information about the drupal-devel