system_update_6046

Versions
6
system_update_6046()

Ensure that the file_directory_path variable is set (using the old 5.x default, if necessary), so that the changed 6.x default won't break existing sites.

Related topics

Code

modules/system/system.install, line 2515

<?php
function system_update_6046() {
  $ret = array();
  if (!variable_get('file_directory_path', FALSE)) {
    variable_set('file_directory_path', 'files');
    $ret[] = array('success' => TRUE, 'query' => "variable_set('file_directory_path')");
  }
  return $ret;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.