function scald_flash_uninstall in Scald: Media Management made easy 7
Implements hook_uninstall().
File
- modules/
providers/ scald_flash/ scald_flash.install, line 26 - Scald Flash Installation
Code
function scald_flash_uninstall() {
field_delete_field('scald_width');
field_delete_field('scald_height');
$defaults = variable_get('scald_atom_defaults', array());
unset($defaults['flash']);
$defaults = variable_set('scald_atom_defaults', $defaults);
drupal_load('module', 'scald');
// If Scald is disabled, its classes are not autoloaded.
module_load_include('inc', 'scald', 'includes/ScaldAtomController');
ScaldAtomController::removeType('flash');
}