You are here

function scald_atom_load in Scald: Media Management made easy 7

Load a Scald Atom.

Parameters

int $sid: The Scald ID being loaded.

Return value

mixed A ScaldAtom object on success FALSE upon failure

1 call to scald_atom_load()
scald_atom_delete_confirm_submit in includes/scald.pages.inc
Execute atom deletion.

File

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

Code

function scald_atom_load($sid) {
  if (!is_numeric($sid)) {
    return FALSE;
  }
  $atom = scald_atom_load_multiple(array(
    $sid,
  ));
  return $atom ? $atom[$sid] : FALSE;
}