You are here

function scald_audio_scald_add_atom_count in Scald: Media Management made easy 7

Implements hook_scald_add_atom_count().

File

modules/providers/scald_audio/scald_audio.module, line 38
Scald Audio is a Scald Atom Provider for audio files.

Code

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