media_soundcloud.install in Media: SoundCloud 7.2
Same filename and directory in other branches
Install, update and uninstall functions for the Media: SoundCloud module.
File
media_soundcloud.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the Media: SoundCloud module.
*/
/**
* Update Media Soundcloud files to the new audio file_entity type.
*/
function media_soundcloud_update_7200() {
// Code related to file type migration removed in favour of Media's Media Migrate File Types submodule.
}
/**
* Remove obsolete variables.
*/
function media_soundcloud_update_7201() {
// Create an array of variables sans 'media_soundcloud' prefix.
$variables = array(
'width',
'autoplay',
'extra_params',
'preview_uri',
);
foreach ($variables as $variable) {
// Remove the old variable.
variable_del('media_soundcloud__' . $variable);
}
}
Functions
Name![]() |
Description |
---|---|
media_soundcloud_update_7200 | Update Media Soundcloud files to the new audio file_entity type. |
media_soundcloud_update_7201 | Remove obsolete variables. |