[development] Take Over Page Output from Module
matt at ninjitsuweb.com
Thu Jul 8 23:51:01 UTC 2010
Are you looking for hook_menu_alter() ?
All the Best,
On Thu, Jul 8, 2010 at 4:48 PM, Adam B. Ross <grayside at gmail.com> wrote:
> The Print module, Book module's export functionality, the s5 module,
> they all have this trick of taking over the entire page output for
> their own theme function.
> I am building a module that is headed toward a more generic mechanism
> for funneling content through a pluggable template, but despite
> pouring over the code I can't see the magical place where all other
> Drupal markup is dropped in favor of the HTML document described in my
> own template file.
> What's the trick?
> I have a menu callback along the lines of "present/%node" and it leads
> to an export function that returns my theme function, which is a
> template outputting a complete HTML document.
More information about the development