Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
jezhailwood CreditAttribution: jezhailwood commentedProblem solved. I just needed to start my menu item with 'admin/'.
Comment #2
migueltrindade CreditAttribution: migueltrindade commentedIs there any other way? My path does not begin with "admin/"
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedThe answer you seek is found in the documentation for hook_menu here: https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...
Comment #4
migueltrindade CreditAttribution: migueltrindade commentedThanks for the quickly answer.
You are completely right as always.
Cheers!