You are here

function scald_example_content_type_node_load in Scald: Media Management made easy 6

Implements hook_node_load (D7)

File

scald_example_content_type/scald_example_content_type.module, line 39
Contains an example implementation of a node type that will be used to provide atoms to Scald. For this example sake, we(ll be providing Image atoms based on pictures attached to this node.

Code

function scald_example_content_type_node_load(&$node) {
  $query = array(
    'provider' => 'scald_example_content_type',
    'base_id' => $node->nid,
  );
  $sid = scald_search($query, FALSE, TRUE);
  return array(
    'scald_sid' => $sid,
  );
}