Skip to content

Instantly share code, notes, and snippets.

@bdone
Created June 7, 2013 01:41
Show Gist options
  • Save bdone/5726531 to your computer and use it in GitHub Desktop.
Save bdone/5726531 to your computer and use it in GitHub Desktop.
<?php
// notify that settings-global is in use
// if (!drupal_is_cli()) {
// drupal_set_message(t('Additional configuration added via "%file".', array('%file' => str_replace('bdone', '...', __FILE__))), 'warning');
// }
// ************************************
// SYSTEM
// ************************************
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
error_reporting(E_ALL);
/**
* If PHP is not properly recognizing the line endings when reading files either
* on or created by a Macintosh computer, enabling the auto_detect_line_endings
* run-time configuration option may help resolve the problem.
*
* See: http://www.php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings
*/
ini_set('auto_detect_line_endings', TRUE);
// ************************************
// CORE
// ************************************
// site info
$conf['site_mail'] = '[email protected]';
// available updates
$conf['update_check_disabled'] = 1;
$conf['update_check_frequency'] = 7;
$conf['update_notification_threshold'] = 'security';
$conf['update_notify_emails'] = array('[email protected]');
// logging
$conf['error_level'] = 2;
// caching
// $conf['cache'] = 0;
// $conf['block_cache'] = 0;
$conf['preprocess_css'] = 0;
$conf['preprocess_js'] = 0;
// disable core caching tests
//if (!class_exists('DrupalFakeCache')) {
// $conf['cache_backends'][] = 'includes/cache-install.inc';
//}
// Default to throwing away cache data
//$conf['cache_default_class'] = 'DrupalFakeCache';
// Rely on the DB cache for form caching - otherwise forms fail.
// $conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
// http://drupal.org/node/797346
// finally set up ommiting other bootstrap phases:
//$conf['page_cache_without_database'] = TRUE;
// you probably do not want hook_boot() to fire:
//$conf['page_cache_invoke_hooks'] = FALSE;
// ************************************
// CONTRIB
// ************************************
// devel settings.
// $conf['devel_query_display'] = 1;
// $conf['devel_query_sort'] = 1;
// $conf['devel_rebuild_theme_registry'] = 1;
// environment indicator
if (!drupal_is_cli()) {
$conf['environment_indicator_text'] = strtoupper($_SERVER['SERVER_NAME']);
}
// reroute_email
$conf['reroute_email_enable'] = 1;
$conf['reroute_email_address'] = '[email protected]';
// rules debug
// $conf['rules_debug'] = 1;
// views debugging
$conf['views_ui_show_advanced_column'] = 1;
$conf['views_ui_show_sql_query'] = 1;
// xhprof settings
$conf['xhprof_enabled'] = 0;
$conf['xhprof_disable_admin_paths'] = 0;
# migrate settings
$conf['migrate_import_method'] = 2; // Allows both immediate and background operations
$conf['migrate_drush_path'] = '/usr/bin/drush';
$conf['migrate_drush_mail'] = 1;
$conf['migrate_drush_mail_subject'] = 'Migration operation completed';
$conf['migrate_drush_mail_body'] = 'The migration operation is complete. Please review the results on your import dashboard';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment