thanks.<br><br>and if I have my_page.tpl.php<br><br>how can i show my css with &lt;?php print $head ?&gt; and other content in my_module.module ?<br><br><br><br><div class="gmail_quote">On Wed, Mar 16, 2011 at 11:52 AM, Earl Miles <span dir="ltr">&lt;<a href="mailto:merlin@logrus.com">merlin@logrus.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You&#39;re on the wrong path.<br>
<br>
Normal page output, i.e, doing this:<br>
<br>
function my_page() {<br>
  $output = &#39;blah&#39;<br>
  return $output;<br>
}<br>
<br>
...will be wrapped in theme(&#39;page&#39;).<br>
<br>
You have two options:<br>
<br>
1) Implement theme_preprocess_page, detect (somehow, you have to figure<br>
out how to detect this) that you need to be in a stripped down page, and<br>
set $variables[&#39;template_file&#39;] = &#39;page-my-stripped-page.tpl.php&#39;<br>
<br>
In Drupal 6, this is the best choice, because there are elements of a<br>
page you MUST have. i.e, the &lt;head&gt; tags which you probably want.<br>
<br>
2) Print your output directly and return NULL. If you return NULL (or 0,<br>
I think), the system assumes that you don&#39;t need to wrap in<br>
theme(&#39;page&#39;) because you already printed the output. This is commonly<br>
used for feeds and other things that aren&#39;t actually HTML pages. So:<br>
<br>
function my_page() {<br>
  $output = &#39;blah&#39;<br>
  print $output;<br>
<div><div></div><div class="h5">}<br>
<br>
<br>
On 3/16/2011 7:13 AM, Damian Adriel Perez Valdes wrote:<br>
&gt; hello:<br>
&gt;<br>
&gt; i have a question. I need to make a page in my module with out a garland<br>
&gt; theme, to show with a ligthbox module.<br>
&gt;<br>
&gt; I use:<br>
&gt;<br>
&gt;         &#39;title&#39; =&gt; &#39;Show&#39;,<br>
&gt;         &#39;page callback&#39; =&gt; &#39;theme&#39;,<br>
&gt;         &#39;page arguments&#39; =&gt; array(&#39;view_user&#39;),<br>
&gt;         &#39;access callback&#39; =&gt; TRUE,<br>
&gt;         &#39;type&#39; =&gt; MENU_CALLBACK,<br>
&gt;<br>
&gt; /**<br>
&gt;  * Implementation of hook_theme().<br>
&gt;  */<br>
&gt; function show_theme() {<br>
&gt;   return array(<br>
&gt;     &#39;view_user&#39; =&gt; array(<br>
&gt;       &#39;arguments&#39; =&gt; array(&#39;view_user&#39; =&gt; NULL, &#39;type&#39; =&gt; &#39;html&#39;, &#39;node&#39;<br>
&gt; =&gt; NULL),<br>
&gt;       &#39;template&#39; =&gt; &#39;page-user-view&#39;,<br>
&gt;     ),<br>
&gt;   );<br>
&gt; }<br>
&gt;<br>
&gt; it&#39;s work fine, but load with a garland theme. and i need white page,<br>
&gt; without theme, because i load this page with lightbox2 module.<br>
&gt;<br>
&gt; what can i do ?<br>
&gt;<br>
&gt; thanks.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>