You are here

function scald_atom_save in Scald: Media Management made easy 7

Save changes to a Scald Atom, or create a new one.

See also

ScaldAtomController::save()

5 calls to scald_atom_save()
ScaldAtomEntityTestCase::testScaldSaveAtom in tests/scald.test
Test saving malformed and minimal atoms.
ScaldWebTestCase::addAtomAction in tests/scald.test
Add an action bit.
ScaldWebTestCase::deleteAtomAction in tests/scald.test
Delete an action bit.
scald_atom_add_form_options_submit in includes/scald.pages.inc
Handles the final atom creation step form submission.
scald_video_form_scald_atom_add_form_options_submit in modules/providers/scald_video/scald_video.module
Atom's form save and edit submit callback.
1 string reference to 'scald_atom_save'
scald_entity_info in ./scald.module
Implements hook_entity_info().

File

./scald.module, line 500
The Scald Core, which handles all Scald Registries and dispatch.

Code

function scald_atom_save(&$atom) {
  return ScaldAtomController::save($atom) ? $atom->sid : FALSE;
}