Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Seven theme as default for admin and content edit #2

Open
paulhuisman opened this issue Feb 4, 2013 · 1 comment
Open

Use Seven theme as default for admin and content edit #2

paulhuisman opened this issue Feb 4, 2013 · 1 comment

Comments

@paulhuisman
Copy link

No description provided.

@martijnv
Copy link

You can set Seven as the default admin theme in your own implementation of the Skeleton. The Skeleton as provided seems to be just an example of how you could create a Skeleton. You can create a completely customized Skeleton for your own projects with your own settings and functionality anyway you like.

You can add this in the .install file:

// Enable the admin theme (Seven), set it as the admin theme, and use it when
// editing content.
$admin_theme = 'seven';
db_update('system')
->fields(array(
'status' => 1,
))
->condition('type', 'theme')
->condition('name', $admin_theme)
->execute();
variable_set('admin_theme', $admin_theme);
variable_set('node_admin_theme', '1');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants