diff --git a/feeds.module b/feeds.module index 420c6b5..9613fc8 100644 --- a/feeds.module +++ b/feeds.module @@ -511,6 +511,21 @@ function feeds_entity_delete($entity, $type) { } /** + * Implements hook_entity_property_info_alter(). + */ +function feeds_entity_property_info_alter(&$info) { + // @todo, should this function add the feed_nid property to all entity types? + // Is there a way to easily determine which entity types get imported? + if (!empty($info['node']['properties'])) { + $info['node']['properties']['feed_nid'] = array( + 'label' => 'Feed NID', + 'type' => 'integer', + 'description' => t('Nid of the Feed Node that imported this entity.'), + ); + } +} + +/** * Implements hook_node_validate(). */ function feeds_node_validate($node, $form, &$form_state) {