You are here

function video_cck_update_3 in Embedded Media Field 5

since we made our engine dependent on emfield, we need to change some variables accordingly

File

contrib/video_cck/video_cck.install, line 54

Code

function video_cck_update_3() {
  $ret = array();
  foreach (emfield_system_list('video_cck') as $provider) {

    // TODO: this will need some attention when we upgrade to d6
    $test = variable_get('video_cck_allow_' . $provider->name, NULL);
    if (isset($test)) {
      variable_set('emfield_' . $module . '_allow_' . $provider->name, variable_get('video_cck_allow_' . $provider->name, true));
    }
  }
  $ret[] = array(
    'query' => t('The Embedded Video Field allowed provider variables have been updated.'),
    'success' => TRUE,
  );
  $ret = array_merge($ret, _video_cck_update_reset_cache());
  return $ret;
}