Last active
August 29, 2015 14:18
-
-
Save samueljon/e81e8a2c45bf5e3554f1 to your computer and use it in GitHub Desktop.
Creating Drupal 7 installation profile https://www.drupal.org/node/1022020
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 | |
/** | |
* Implement hook_install(). | |
* | |
* Perform actions to set up the site for this profile. | |
*/ | |
function my_bootstrap_install() { | |
include_once DRUPAL_ROOT . '/profiles/minimal/minimal.install'; | |
minimal_install(); | |
/* Enable Ember Admin Theme */ | |
variable_set('admin_theme', 'ember'); | |
/* Disable Toolbar in favor of Navbar */ | |
module_disable(array("toolbar","overlay")); | |
/* Set cron to run each hour */ | |
variable_set('cron_safe_threshold', "3600"); | |
/* Set higher limit on log messages to keep */ | |
variable_set('dblog_row_limit', "1000000"); | |
/* Set cache lifetime to 30 minutes */ | |
variable_set('cache_lifetime', "1800"); | |
variable_set('page_cache_maximum_age', "1800"); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment