Skip to content

Instantly share code, notes, and snippets.

@samueljon
Last active August 29, 2015 14:18
Show Gist options
  • Save samueljon/e81e8a2c45bf5e3554f1 to your computer and use it in GitHub Desktop.
Save samueljon/e81e8a2c45bf5e3554f1 to your computer and use it in GitHub Desktop.
Creating Drupal 7 installation profile https://www.drupal.org/node/1022020
<?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