From 52195a6b1dd478875a93935df27d7bcacb14f289 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 11 Feb 2010 15:52:13 +0000 Subject: #525622 by scor, catch, and yched: Allow Entity path callback to deal with options. --- modules/system/system.api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/system/system.api.php') diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 8ebf9d6c0..2245f4c6b 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -66,8 +66,9 @@ function hook_hook_info() { * static caching of entities during a page request. Defaults to TRUE. * - load hook: The name of the hook which should be invoked by * DrupalDefaultEntityController:attachLoad(), for example 'node_load'. - * - path callback: A function taking an entity as argument and returning the - * path to the entity. + * - uri callback: A function taking an entity as argument and returning the + * uri elements of the entity, e.g. 'path' and 'options'. The actual entity + * uri can be constructed by passing these elements to url(). * - fieldable: Set to TRUE if you want your entity type to be fieldable. * - object keys: An array describing how the Field API can extract the * information it needs from the objects of the type. Elements: -- cgit v1.2.3