I'm really quite liking Profiler, but one issue I've come across is that it doesn't set an admin theme and simply falls back on whatever the default theme is set as.

I'd ideally like to set Seven as the default admin theme -- any idea how I'd do that?

Thank you!

Comments

Jarlskov’s picture

This is not really a profiler issue. Just set the required variable like in the standard profile:

// Enable the admin theme.
db_update('system')
  ->fields(array('status' => 1))
  ->condition('type', 'theme')
  ->condition('name', 'seven')
  ->execute();
variable_set('admin_theme', 'seven');
aendra’s picture

Haven't had the chance to confirm this yet, but where would you put this? whatever.profile? Let me know and I'll finally close this issue. Thanks!

guypaddock’s picture

Issue summary: View changes

Here's an example; place this in your profile .info file:

variables[admin_theme] = 'seven'

guypaddock’s picture

Title: Setting admin theme? » Enable and set admin theme
Category: Support request » Feature request

I do see the drawback here... If using an admin theme that is not Seven, Profiler doesn't enable the theme first.

Moving this to be a feature request.