You are here

function media_update_7020 in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 media.install \media_update_7020()
  2. 7 media.install \media_update_7020()
  3. 7.2 media.install \media_update_7020()

Delete the wysiwyg_allowed_types variable if it is the same as default.

File

./media.install, line 537
Install, update and uninstall functions for the Media module.

Code

function media_update_7020() {
  if (variable_get('media__wysiwyg_allowed_types') == array(
    'image',
    'video',
  )) {
    variable_del('media__wysiwyg_allowed_types');
  }
}