Last active
November 4, 2015 21:14
-
-
Save dasginganinja/c2fdc78156ef7dc7d066 to your computer and use it in GitHub Desktop.
Drupal 7 Enable theme in hook_install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_install(). | |
*/ | |
function sis_site_install() { | |
// Do some things on install, like setting the module weight. | |
// Setup the Adminimal theme | |
$themes = list_themes(); | |
if ($themes['adminimal']->status == 0) { | |
theme_enable(array('adminimal')); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment