You are here

function emvideo_update_4 in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emvideo/emvideo.install \emvideo_update_4()
  2. 6.2 contrib/emvideo/emvideo.install \emvideo_update_4()

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

File

contrib/emvideo/emvideo.install, line 188
Installation, configuration, and removal of the emvideo module.

Code

function emvideo_update_4() {
  $ret = array();
  foreach (emfield_system_list('emvideo') as $provider) {

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