You are here

function media_wysiwyg_upgrade_token in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 modules/media_wysiwyg/includes/media_wysiwyg.upgrade.inc \media_wysiwyg_upgrade_token()

Upgrade a single media token to latest version.

Parameters

array $tag_info: The media token as a json-decoded array.

1 call to media_wysiwyg_upgrade_token()
media_wysiwyg_upgrade_entity_tokens in modules/media_wysiwyg/includes/media_wysiwyg.pages.inc
Upgrade media tokens in filtered text fields for a given entity.

File

modules/media_wysiwyg/includes/media_wysiwyg.pages.inc, line 247
Common pages for the Media WYSIWYG module.

Code

function media_wysiwyg_upgrade_token(array &$tag_info) {
  $version = variable_get('media_wysiwyg_token_version', '');
  if (version_compare($version, '3.0', '<')) {
    media_wysiwyg_aggregate_alignment($tag_info);
  }

  // Successive upgrades follows here.
}