Drupal - Programatically trigger another theme


/ Published in: PHP
Save to your folder(s)

This example triggers the admin theme when on any of the user/* pages (login, edit, etc.). Put the name of your admin theme in {admin-theme-name} so there's a safe fallback in case variable_get doesn't find the admin_theme.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.