Community Documentation

module_get_template_path()

Last updated October 9, 2008. Created by crystaldawn on October 3, 2008.
Log in to edit this page.

DEFINITION

<?php
function module_get_template_path($module_name, $type, $template_name, $region = '')
?>

This function simply returns the path of the template file that module_get_template_content() would use if it were passed the same parameters. Pretty simple ;)

$module_name = Your module's name

$type = The type you assigned to the template file when you created it.

$template_name = A unique identifier you assigned to the template file when you created it.

$region = Usually used with type == block but can be used with other types as well.

About this page

Drupal version
Drupal 5.x

Site Building Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here