You are here

function scald_atom_edit_page in Scald: Media Management made easy 7

Atom edit page callback.

1 string reference to 'scald_atom_edit_page'
scald_menu in ./scald.module
Implements hook_menu().

File

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

Code

function scald_atom_edit_page($js, $atom) {

  // The edit page is nothing else other than the add page, at the Options step.
  // We prepare data for this step then send back to the add page. The only
  // useful information at this step is the atom itself.
  $scald = array(
    'atoms' => array(
      $atom,
    ),
  );
  $types = scald_types();
  ctools_include('object-cache');
  ctools_object_cache_set('scald_atom', 'edit:' . $atom->sid, $scald);
  return scald_atom_add_page($js, $types[$atom->type], 'options', $atom->sid);
}