You are here

function properties_compare_create_key in Dynamic properties 7

Build a unique string key for the given entity.

Parameters

$entity_type: Type of entity, for example node or comment.

$entity: Entity object.

Return value

A unique key in the form of entitytype_id.

2 calls to properties_compare_create_key()
properties_compare_entity_view in properties_compare/properties_compare.module
Implements hook_entity_view().
properties_compare_page in properties_compare/properties_compare.pages.inc
Page callback, display comparison table.

File

properties_compare/properties_compare.module, line 139
Module file for privatemsg_compare module.

Code

function properties_compare_create_key($entity_type, $entity) {
  list($id, , ) = entity_extract_ids($entity_type, $entity);
  return $entity_type . '_' . $id;
}