constant MEDIA_YOUTUBE_DATA_VERSION in Media: YouTube 6
This defines the version of the content data array that we serialize in emvideo_youtube_data(). If we change the expected keys of that array, we must increment this value, which will allow older content to be updated to the new version automatically.
3 uses of MEDIA_YOUTUBE_DATA_VERSION
- emvideo_youtube_data_version in providers/
emvideo/ youtube.inc - Implement hook emvideo_PROVIDER_data_version().
- media_youtube_emfield_data in ./
media_youtube.module - _media_youtube_update_fetch_metadata in ./
media_youtube.install - Batch function to retrieve the most recent data from providers.
File
- includes/
media_youtube.variables.inc, line 30 - Contains the variables and defaults used by Media: YouTube.
Code
define('MEDIA_YOUTUBE_DATA_VERSION', 5);