page not rendered from module i would show a page not themed by drupal from a specific path from my custom module. 

I'm using drupal7.

Here is the example module:

file: custom_example.module

&lt;?php
/*
 * Implementation of hook_menu()
 */
function custom_example_menu(){
  $items['foo/bar'] = array(
    'title' =&gt; 'Page Title',
    'description' =&gt; 'Simple custom hook_menu() implementation.',
    'page callback' =&gt; 'my_page_function',
    'access arguments' =&gt; array('access content'),
  );
  return $items;
}

/*
 * Returns custom content to Drupal
 */
function my_page_function(){
   return theme('my_custom_template');
}

/*
 * Implementation of hook_theme().
 */
function custom_example_theme(){
  return array(
    'my_custom_template' =&gt; array(
      'template' =&gt; 'custom-page',
    ),
  );
}


file:custom-page.tpl.php

&lt;html&gt;
&lt;body&gt;
&lt;p&gt;hello&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;


This works fine to show the page at mysite.com/foo/bar link but the page is themed with all drupal stuffs (header footer sidebar) that i don't want.

Thanks all
You would need to do something like this in your my_page_function

$output = '&lt;html&gt;
&lt;body&gt;
&lt;p&gt;hello&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;';

print $output;
die;


So don't return anything. It's not great and avoids everything drupal related really but it sounds like what you want to do. As using anything to do with drupal's theme functions will always be wrapped in the site of the site content