function scald_fetch in Scald: Media Management made easy 7
Same name and namespace in other branches
- 6 scald.module \scald_fetch()
Load a Scald Atom.
Parameters
int $sid: The Scald ID of the Atom to load.
bool $rebuild: If set to TRUE, the Atom will be reloaded from the DB even if it is already present in the memory cache.
Return value
mixed A populated Scald Atom object FALSE if SID is invalid or if $user is not permitted to fetch the Scald Atom
12 calls to scald_fetch()
- atom_reference_field_validate in modules/
fields/ atom_reference/ atom_reference.module - Implements hook_field_validate().
- mee_field_widget_form_alter in modules/
fields/ mee/ mee.module - Implements hook_field_widget_form_alter().
- ScaldAtomEntityTestCase::testScaldAtomManual in tests/
scald.test - Manual atom CRUD test.
- ScaldBaseTestCase::testScaldCache in tests/
scald.test - Test Scald caching system.
- ScaldLocalizeTestCase::createAtom in tests/
scald.test - Overrides ScaldWebTestCase::createAtom().
File
- ./
scald.module, line 645 - The Scald Core, which handles all Scald Registries and dispatch.
Code
function scald_fetch($sid, $rebuild = FALSE) {
$atoms = scald_fetch_multiple(array(
$sid,
), $rebuild);
return $atoms[$sid];
}