diff --git a/expire.node_reference.inc b/expire.node_reference.inc index 8f6592ef908943785c40ba1234db47f68b24035b..50c1e480a8500a3ae1a9d8ce56106f7bf9fd11a9 100644 --- a/expire.node_reference.inc +++ b/expire.node_reference.inc @@ -1,12 +1,20 @@ type); $field_types = field_info_fields(); + // Loop over the fields of this node. If the field is a node_reference field, add any referenced nodes to $paths foreach ($fields as $field) { - // Add referenced node paths and expire referenced nodes - // when the referencing node is updated. if ($field_types[$field['field_name']]['type'] == 'node_reference') { $node_field = isset($node->$field['field_name']) && !empty($node->$field['field_name']) ? $node->$field['field_name'] : array(); foreach($node_field[LANGUAGE_NONE] as $reference) {