[drupal-devel] Does the Forms API give Drupal a model view controller architecture

Bèr Kessels berdrupal at tiscali.be
Mon Sep 26 10:59:57 UTC 2005


On Monday 26 September 2005 08:09, Kieran Lal wrote:
> 2) View - To me there are three stock views, or outputs, in Drupal.  
> The first is just themeless output.  The second is the themed  
> output.  The third is as an XML-RPC request.

Here lies a task for us too. Drupal has the themes for view, but ATM the only 
output possible is HTML. That is (and there lies a huge taks) because of a 
lot of hardcoded HTML. 
So in order to get the V layer correct, we need to get all the hardcoded HTML 
(even if they are hardcoded in theme functions) away, or better centralised. 

One possibility is a theme wrapper function: a lower level function that will 
allow you to define, in one place, what HTML/PScode/SVG etc is used to wrap 
your content in.

Ber



More information about the drupal-devel mailing list