You are here

function focal_point_update_7005 in Focal Point 7

Update test drive image to use file default scheme, so remote schemes work.

1 call to focal_point_update_7005()
focal_point_install in ./focal_point.install
Implements hook_install().

File

./focal_point.install, line 170
Install hooks for focal_point.

Code

function focal_point_update_7005() {
  $scheme = variable_get('file_default_scheme', 'public');
  $fid = variable_get('focal_point_test_drive_image', NULL);
  if (is_null($fid)) {
    focal_point_create_test_image($scheme);
  }
  else {
    $file = file_load($fid);
    if ($file) {
      $file->scheme = $scheme;
      file_save($file);
    }
  }
}