Периодически возникает ситуации, когда надо на разрабочиском сайте включить некоторые модули которые, отключены на боевом.
Нам поможет следующий кусочек кода:
//////////////////////////////////////////
// analog variable_set()
$conf['cache'] = FALSE;
$conf['block_cache'] = FALSE;
$conf['preprocess_css'] = FALSE;
$conf['preprocess_js'] = FALSE;
//$conf['display_cache_disable'] = TRUE;
$conf['minify_html'] = FALSE;
$conf['theme_debug'] = TRUE;
////////////////////////////////////////////
////////////////////////////////////////////
// Enable various modules that should not be disabled on the development site.
register_shutdown_function('_enable_modules_on_dev');
function _enable_modules_on_dev() {
$module_list = array('backup_migrate', 'devel', 'contextual');
$enable_dependencies = TRUE;
module_enable($module_list, $enable_dependencies);
}