function diff_entity_diff in Diff 7.3
Implements hook_entity_diff().
Helper function to invoke the depreciated hook_diff() for node entities.
This manually invokes hook_diff() to avoid a function name clash with the PHP 5 (>= 5.3.0) date_diff() function or the Dates modules implementation.
File
- ./
diff.diff.inc, line 16 - Includes the hooks defined by diff_hook_info().
Code
function diff_entity_diff($old_entity, $new_entity, $context) {
$return = array();
$entity_type = $context['entity_type'];
$info = entity_get_info($entity_type);
if (!empty($info['fieldable'])) {
$return = diff_entity_fields_diff($old_entity, $new_entity, $context);
}
return $return;
}