I am using a modal to edit a product display node. It's all working well, except that the modal is using the default theme, not the admin theme. Forgive me if I have missed something obvious, but is it possible to specify which theme should be used?

Comments

jezhailwood’s picture

Status: Active » Closed (works as designed)

Problem solved. I just needed to start my menu item with 'admin/'.

migueltrindade’s picture

Is there any other way? My path does not begin with "admin/"

merlinofchaos’s picture

The answer you seek is found in the documentation for hook_menu here: https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...

migueltrindade’s picture

Thanks for the quickly answer.

You are completely right as always.

Cheers!