You are here

function drupalforfirebug_node_process in Drupal For Firebug 7.2

Same name and namespace in other branches
  1. 7 drupalforfirebug.module \drupalforfirebug_node_process()

Processing function for Node API

6 calls to drupalforfirebug_node_process()
drupalforfirebug_node_delete in ./drupalforfirebug.module
Implementation of hook_nodes() TODO - are there other hooks we want to track?
drupalforfirebug_node_insert in ./drupalforfirebug.module
drupalforfirebug_node_load in ./drupalforfirebug.module
drupalforfirebug_node_update in ./drupalforfirebug.module
drupalforfirebug_node_validate in ./drupalforfirebug.module

... See full list

File

./drupalforfirebug.module, line 111

Code

function drupalforfirebug_node_process(&$node, $op) {
  global $dfp_runtime;
  if (!user_access('Access Firebug Debug')) {
    return;
  }
  $nid = isset($node->nid) ? $node->nid : '*' . t('NEW') . '*';
  $data = drupalforfirebug_array_compare((array) $dfp_runtime['drupalforfirebug_nodes']['original'][$node->type][$nid], (array) $node);
  $output = drupalforfirebug_field_object('node', $nid, $op, $data);
  drupalforfirebug_log($output, 'hook_nodeapi');
}