You are here

function feeds_entity_property_info_alter in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_entity_property_info_alter()

Implements hook_entity_property_info_alter().

File

./feeds.module, line 1508
Feeds - basic API functions and hook implementations.

Code

function feeds_entity_property_info_alter(&$info) {
  foreach ($info as $entity_type => $entity_info) {
    $info[$entity_type]['properties']['feeds_item_guid'] = array(
      'label' => 'Feeds Item GUID',
      'type' => 'text',
      'description' => t('Feeds Item GUID.'),
      'getter callback' => 'feeds_get_feeds_item_property',
    );
    $info[$entity_type]['properties']['feeds_item_url'] = array(
      'label' => 'Feeds Item URL',
      'type' => 'text',
      'description' => t('Feeds Item URL.'),
      'getter callback' => 'feeds_get_feeds_item_property',
    );
    $info[$entity_type]['properties']['feed_nid'] = array(
      'label' => 'Feed NID',
      'type' => 'integer',
      'description' => t('Nid of the Feed Node that imported this entity.'),
      'getter callback' => 'feeds_get_feeds_item_property',
    );
    $info[$entity_type]['properties']['feed_node'] = array(
      'label' => 'Feed node',
      'type' => 'node',
      'description' => t('Feed Node that imported this entity.'),
      'getter callback' => 'feeds_get_feeds_item_property',
    );
  }
}