summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index f8f20b8cc..f92da9012 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -66,6 +66,8 @@ 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.
* - 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:
@@ -126,6 +128,7 @@ function hook_entity_info() {
'controller class' => 'NodeController',
'base table' => 'node',
'revision table' => 'node_revision',
+ 'path callback' => 'node_path',
'fieldable' => TRUE,
'object keys' => array(
'id' => 'nid',