You are here

function scald_flash_scald_add_atom_count in Scald: Media Management made easy 7

Implements hook_scald_add_atom_count().

File

modules/providers/scald_flash/scald_flash.module, line 32
Defines a flash provider for Scald.

Code

function scald_flash_scald_add_atom_count(&$form, &$form_state) {
  if (is_array($form_state['values']['file_swf'])) {
    return max(count($form_state['values']['file_swf']), 1);
  }
  return 1;
}