function media_vimeo_update_7201 in Media: Vimeo 7.2
Remove obsolete variables.
File
- ./
media_vimeo.install, line 18 - Install, update and uninstall functions for the Media: Vimeo module.
Code
function media_vimeo_update_7201() {
// Create an array of variables sans 'media_vimeo' prefix.
$variables = array(
'width',
'height',
'preview_uri',
'api',
'autoplay',
'byline',
'color',
'loop',
'portrait',
'title',
'protocol',
);
foreach ($variables as $variable) {
// Remove the old variable.
variable_del('media_vimeo__' . $variable);
}
}