nid) ? $node->nid : '*NEW*'; if ($node->created) { // only do this for real nodes $node_clone = drupal_clone($node); // this is important since global + pass by reference &$node is bad news $dfp_runtime['drupalforfirebug_nodes']['original'][$node->type][$nid] = $node_clone; } } /** * Implementation of hook_views_pre_query() */ function drupalforfirebug_preprocess_views_pre_query(&$view) { global $dfp_runtime; $view_clone = drupal_clone($view); // // this is important since global + pass by reference &$view is bad news $dfp_runtime['drupalforfirebug_views']['original'][$view->name] = $view_clone; }