I have a Drupal module, that I want to present in a clean page - with no headers, menus, footer ect. I think all I need is a version of page.tpl.php that contains HTML page headers and <?php print $content ?>
How can I point my module to such a page?
views:
33answers:
3
A:
the template suggestion technique worked for me!
function phptemplate_preprocess(&$variables) {
global $user;
$myURL = (basename($_SERVER['REQUEST_URI']));
if($myURL == 'my_module_name')
{
$variables['template_file'] = 'page_my_module';
}
}
ernie
2010-05-02 17:30:53