Good explanation of theme() function

yoeld - November 15, 2008 - 14:27

Hello,

Is there anybody who could provide me with a good explanation and examples of the function theme(). I am a newbie and could not find anything valuable.

Thanks,
Yoel

See

nevets - November 15, 2008 - 15:19

See http://api.drupal.org/api/function/theme for details about the theme function. You may also want to read the theme guide.

Examples?

yoeld - November 15, 2008 - 18:24

Anybody can provide me with some examples? http://api.drupal.org/api/function/theme provides the details of the function itself. I need assistance on its functionality and usage.

Thanks

Read through the theme guide

nevets - November 15, 2008 - 18:53

Read through the theme guide to get a background. In general terms the theme function is used to separate the collection of "data" from it's presentation.

 
 

Drupal is a registered trademark of Dries Buytaert.