You will need to implement the function hook_themeand specify the template file.
Then in your page callback you will need to call your theme function. Sort of...
function example_theme($existing, $type, $theme, $path) {
return array(
'recent_completion' => array(
'render element' => 'elements',
'template' => 'recent-completions',
),
...
}
function example_recent() {
$render_array = array( );
return theme('recent_completion', $render_array);
}
source
share