You are here

function scald_image_scald_add_atom_count in Scald: Media Management made easy 7

Implements hook_scald_add_atom_count().

File

modules/providers/scald_image/scald_image.module, line 73
Scald Image is a Scald Atom Provider for images.

Code

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