You are here

function scald_flash_install in Scald: Media Management made easy 7

Implements hook_install().

File

modules/providers/scald_flash/scald_flash.install, line 11
Scald Flash Installation

Code

function scald_flash_install() {
  ScaldAtomController::addType('flash', 'Flash', 'Resource flash');

  // Defines the default thumbnail to use for flash atoms.
  $default = scald_atom_defaults('flash');
  $default->thumbnail_source = drupal_get_path('module', 'scald_flash') . '/icons/flash.png';
  $defaults = variable_get('scald_atom_defaults', array());
  $defaults['flash'] = $default;
  $defaults = variable_set('scald_atom_defaults', $defaults);
}