function civicrm_entity_uri_callback in CiviCRM Entity 7.2
URI Callback for entities
Parameters
$entity:
Return value
array
1 string reference to 'civicrm_entity_uri_callback'
- civicrm_entity_entity_info in ./
civicrm_entity.module - Here we declare selected CiviCRM entities to Drupal.
File
- ./
civicrm_entity.module, line 472
Code
function civicrm_entity_uri_callback($entity) {
$uri['path'] = str_replace('_', '-', $entity
->entityType()) . '/' . $entity->id;
return $uri;
}