How to Use Theme Functions to Take Over an Entire Page

Events happening in the community are now at Drupal community events on www.drupal.org.
Grayside's picture

My last question at July's meetup asked how to mimic the book export or print module functionality to set aside the entire Drupal page render in favor of your own theme function.

The Development mailing list got me an answer within two hours, courtesy of Matt Chapman.

In your menu callback function, do not return theme(). Instead, print theme().

Santa Barbara Drupal

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: