You are here

function scald_example_content_type_nodeapi in Scald: Media Management made easy 6

Implements hook_nodeapi. Dispatch the call to the corresponding D7 hook.

File

scald_example_content_type/scald_example_content_type.module, line 27
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_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  if ($node->type == 'scald_example_content_type') {
    $function = 'scald_example_content_type_node_' . $op;
    if (function_exists($function)) {
      $function($node, $a3, $a4);
    }
  }
}