[drupal-devel] theme 'page'... ideas

Moshe Weitzman weitzman at tejasa.com
Mon Mar 14 18:03:56 UTC 2005


Can you give an example, such as a node view, the home page, a book 
page, etc? Associative arrays don't have any concept of order, so I 
think we will be placing a large burden on themes to place each tiem in 
order.


Negyesi Karoly wrote:
> Hi,
> 
> Currently, theme('page', $output) $output is a string which is built by 
> concatenating other themed elements.
> 
> Let it be an array, and let the themer decide what to do with it. An 
> associative array maybe would be practical.
> 
> I'd suggest replacing the argument of form to be also an array, and it would 
> call theme_form.
> 
> Also, the remaining HTML code shall disappear from the code. I have even 
> found a <br>! 
> 
> I know that code is golden, but first, a bit of talk is necessary, 
> especially for the first proposal...
> 
> Regards
> 
> Karoly Negyesi




More information about the drupal-devel mailing list