You are here

function scald_atom_add_form_add in Scald: Media Management made easy 7

Add form.

1 string reference to 'scald_atom_add_form_add'
scald_atom_add_page in includes/scald.pages.inc
Atom add page callback.

File

includes/scald.pages.inc, line 209
This file contains the various callbacks related to Scald defined pages.

Code

function scald_atom_add_form_add($form, &$form_state) {
  $scald = $form_state['scald'];
  $function = $scald['source'] . '_scald_add_form';
  if (function_exists($function)) {
    $function($form, $form_state);
  }
  else {

    // TODO: Figure out what should be done here.
    $form['error'] = array(
      '#markup' => 'Import without form; does it makes sense ?',
    );
  }
  return $form;
}