Drupal Theme example

Just a quick example for Drupal template registration:

Declared in the .module

<?php
function MODULE_NAME_theme($existing, $type, $theme, $path) {
 
$aThemes =  array(
   
'THE_NAME_OF_THE_THEME' => array(
       
'variables' => array('node'=>array()),
       
'template' => 'THE_NAME_OF_THE_TPL',
    ),
  );

  return $aThemes;
}
?>

To get the output of the theme tpl

<?php
$s_output_html
= theme('THE_NAME_OF_THE_THEME', array('VARIABLE' => 'VALUE','));
?>