You are here

function scald_example_content_type_node_update in Scald: Media Management made easy 6

Implements hook_node_update.

File

scald_example_content_type/scald_example_content_type.module, line 56
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_update(&$node) {
  $atom = scald_example_content_type_get_atom($node);
  if ($atom->sid) {
    scald_update_atom($atom);
  }
  else {
    scald_register_atom((array) $atom);
  }
}