mediatribe.net -- Drupal et développement web

Notice: this post was last updated Il y a 5 years 11 weeks so it might be outdated. Please be cautious before implementing any of suggestions herein.

Enabling a theme in D7 and setting it to default

I normally will do this in the install hook of my site's main feature when using dCycle

<?php
  theme_enable
(array('mytheme'));
 
variable_set('theme_default', 'mytheme');
?>