module_get_template_path()

Last updated on
30 April 2025

DEFINITION

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.

Help improve this page

Page status: Not set

You can: