I'm using Profiler to create a Drupal 7 installation profile, which works great -- however, it doesn't set Seven as an admin theme, and thus falls back on Bartik (The default theme).

Is there any way to set the default admin theme within Profiler?

  • 1
    Could you not just pop variables[admin_theme] = seven in the Profiler .info file?
    – Chapabu
    Nov 27, 2012 at 13:48
  • That doesn't work, just tried it.
    – aendra
    Nov 27, 2012 at 14:12

1 Answer 1


One way to accomplish this is to use Strongarm to set the admin theme variable as part of a Feature.

Given that the "Standard" Drupal installation profile creates a lot of other stuff that won't be in a custom installation profile -- Basic Page and Article content types, for instance -- I've created a Feature with all those and added the Admin Theme Strongarm variable as part of that.

That said, leaving question open in case somebody knows how to set the Admin theme as part of a Profiler makefile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.