You are here

function cdn_update_7210 in CDN 7.2

New: File Conveyor PID file variable.

File

./cdn.install, line 270
Install, update and uninstall functions for the CDN module.

Code

function cdn_update_7210() {
  $ret = array();
  if (variable_get('cdn_mode', FALSE) == 'advanced') {

    // Only do this if cdn_update_6210() for the Drupal 6 version of this
    // module hasn't run.
    if (variable_get('cdn_advanced_pid_file', FALSE) != FALSE) {
      $synced_files_db = variable_get('cdn_advanced_synced_files_db', FALSE);
      $daemon_pid_file = str_replace('synced_files.db', 'daemon.pid', $synced_files_db);
      variable_set('cdn_advanced_pid_file', $daemon_pid_file);
      $ret[] = array(
        'success' => TRUE,
        'query' => 'Created File Conveyor PID file variable.',
      );
    }
  }
  return $ret;
}