You are here

function scald_video_scald_add_atom_count in Scald: Media Management made easy 7

Implements hook_scald_add_atom_count().

File

modules/providers/scald_video/scald_video.module, line 32
Scald Video is a Scald Atom Provider for video files.

Code

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