You are here

function _commerce_pricelist_feeds_fake_nid in Commerce Pricelist 7

Parameters

$entity:

Return value

int

3 calls to _commerce_pricelist_feeds_fake_nid()
commerce_pricelist_feeds_entity_delete in commerce_pricelist_feeds/commerce_pricelist_feeds.module
Implements hook_entity_delete().
commerce_pricelist_feeds_entity_update in commerce_pricelist_feeds/commerce_pricelist_feeds.module
Implements hook_entity_update().
commerce_pricelist_feeds_form_commerce_pricelist_list_form_alter in commerce_pricelist_feeds/commerce_pricelist_feeds.module
Implements hook_form_BASE_FORM_ID_alter().

File

commerce_pricelist_feeds/commerce_pricelist_feeds.module, line 217
Implements the basic functionality required to create and display an entity.

Code

function _commerce_pricelist_feeds_fake_nid($entity) {

  // Feeds have support for attaching to nodes but not generic entities,
  // we fake a nid and hope we don't get into trouble...
  return 100000 + $entity->list_id;
}