function scald_composite_scald_fetch in Scald: Media Management made easy 6
Implementation of hook_scald_fetch().
File
- scald_composite/
scald_composite.module, line 78 - Scald Composites, a Scald Atom Provider for Composite Atoms based on Drupal Nodes.
Code
function scald_composite_scald_fetch(&$atom, $mode) {
if ($mode != 'atom') {
return FALSE;
}
// Node Body mode
if (is_numeric($atom->base_id)) {
$node = node_load($atom->base_id);
$atom->title = $node->title;
}
else {
// @@@TODO: Handle Scald Composite CCK Field instance
}
}