page not rendered from module
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