Get the value from module to template I want to pass the value from module to page tpl file in drupal.I have created a custom module 'one_time_popup'.I have created a sample soutput and tried to pass it and print in page.tpl.php after footer section.but doesn't shows any thing.What I did wrong.I'm a newbie

function one_time_popup_menu(){
$items['oneTimePopupData'] = array(
'title' =&gt; 'One time Popup',
'page callback' =&gt; 'one_time_popup_user_login',
'type' =&gt; MENU_CALLBACK,
'access callback' =&gt; TRUE,
);
return $items;
}
function one_time_popup_user_login(&amp;$edit, $account){
 ...
$output='value from one time popup module!';
return theme('photo_order',array('results' =&gt; $output));
} 
function one_time_popup_theme() {
 return array(
'photo_order' =&gt; array(
  'template' =&gt; 'page',
  'variables' =&gt; array(
    'results' =&gt; NULL,
  ),
 ),
 ); 
}

Tpl file(page.tpl)
&lt;?php echo $results; ?&gt;
&lt;?php
/**
 * Implements hook_menu()
 */
function mymodule_menu() {
  $items = array(
      'custom_menu_item' =&gt; array(
        'title' =&gt; 'Hello world',
        'page callback' =&gt; '_page_hello_world',
        'access callback' =&gt; TRUE,
      ),
    );
  return $items;
}

/**
 * Implements hook_theme().
 */
function mymodule_theme() {
  $theme = array();
  $theme['mymodule_template'] = array(
    'template' =&gt; 'mymodule-template',
  );
  return $theme;
}

/**
 * Preprocessor function for 'mymodule_template'.
 */
function template_preprocess_mymodule_template(&amp;$vars) {
  $vars['hello'] = 'hello!';
}

/**
 * Page callback.
 */
function _page_hello_world() {
  return theme('mymodule_template');

}


A $hello variable is available in your template at path /custom_menu_item