You are here

function sarnia_uri in Sarnia 7

Provide a path for a particular entity.

Parameters

object $entity: An instance of a Sarnia entity.

Return value

array Arguments to pass to url() in order to get the URI of a Sarnia entity.

See also

sarnia_entity_info()

1 string reference to 'sarnia_uri'
sarnia_entity_info in ./sarnia.module
Implements hook_entity_info().

File

./sarnia.module, line 461

Code

function sarnia_uri($entity) {
  return array(
    'path' => "sarnia/{$entity->type}/{$entity->id}",
  );
}