diff options
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 536b303fb..6b5265b25 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -185,7 +185,7 @@ function node_entity_info() { 'controller class' => 'NodeController', 'base table' => 'node', 'revision table' => 'node_revision', - 'path callback' => 'node_path', + 'uri callback' => 'node_uri', 'fieldable' => TRUE, 'object keys' => array( 'id' => 'nid', @@ -243,10 +243,12 @@ function node_entity_info() { } /** - * Entity path callback. + * Entity uri callback. */ -function node_path($node) { - return 'node/' . $node->nid; +function node_uri($node) { + return array( + 'path' => 'node/' . $node->nid, + ); } /** |