[development] hook_theme

Damian Adriel Perez Valdes damian.adriel at gmail.com
Wed Mar 16 14:13:03 UTC 2011


hello:

i have a question. I need to make a page in my module with out a garland
theme, to show with a ligthbox module.

I use:

        'title' => 'Show',
        'page callback' => 'theme',
        'page arguments' => array('view_user'),
        'access callback' => TRUE,
        'type' => MENU_CALLBACK,

/**
 * Implementation of hook_theme().
 */
function show_theme() {
  return array(
    'view_user' => array(
      'arguments' => array('view_user' => NULL, 'type' => 'html', 'node' =>
NULL),
      'template' => 'page-user-view',
    ),
  );
}

it's work fine, but load with a garland theme. and i need white page,
without theme, because i load this page with lightbox2 module.

what can i do ?

thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110316/e839c92a/attachment.html 


More information about the development mailing list