summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module10
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,
+ );
}
/**