You are here

function video_cck_update_4 in Embedded Media Field 5

oops. cleanup from update 3 -- we don't want to accidentally reset our variables if we have to run update 3 again...

File

contrib/video_cck/video_cck.install, line 76

Code

function video_cck_update_4() {
  $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('video_cck_allow_' . $provider->name, NULL);
    }
  }
  $ret[] = array(
    'query' => t('The old Embedded Video Field allowed provider variables have been cleaned up.'),
    'success' => TRUE,
  );
  return $ret;
}