You are here

function emvideo_update_3 in Embedded Media Field 6

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

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

File

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

Code

function emvideo_update_3() {
  $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('emfield_' . $module . '_allow_' . $provider->name, variable_get('emvideo_allow_' . $provider->name, TRUE));
    }
  }
  $ret[] = array(
    'query' => t('The Embedded Video Field allowed provider variables have been updated.'),
    'success' => TRUE,
  );
  $ret = array_merge($ret, _emvideo_update_reset_cache());
  return $ret;
}