diff --git a/profiles/unl_profile/unl_profile.ini.sample b/profiles/unl_profile/unl_profile.ini.sample new file mode 100644 index 0000000000000000000000000000000000000000..417595822e3c702efd3de821185474d1541dcfae --- /dev/null +++ b/profiles/unl_profile/unl_profile.ini.sample @@ -0,0 +1,2 @@ +[defaults] +temp_dir = "/tmp/" diff --git a/profiles/unl_profile/unl_profile.install b/profiles/unl_profile/unl_profile.install index 24a8c4c0318161cdff3956e8a476b17a302f0706..7a975d41f6598475377d6b4977d7c67d4865f9a4 100644 --- a/profiles/unl_profile/unl_profile.install +++ b/profiles/unl_profile/unl_profile.install @@ -10,6 +10,13 @@ function unl_profile_install() // Start out by calling the standard profile's setup. require_once dirname(__FILE__) . '/../standard/standard.install'; standard_install(); + + // Load the ini file (if it exists) + $ini_file = dirname(__FILE__) . '/unl_profile.ini'; + $ini_settings = array(); + if (file_exists($ini_file)) { + $ini_settings = parse_ini_file($ini_file); + } // Enable some standard blocks. $values = array( @@ -44,6 +51,10 @@ function unl_profile_install() theme_enable(array('unl_wdn')); variable_set('theme_default', 'unl_wdn'); + if (isset($ini_settings['temp_dir'])) { + variable_set('file_temporary_path', $ini_settings['temp_dir']); + } + //TODO: IMCE setup (currently cannot be shared between sites)