summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-11 15:52:13 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-11 15:52:13 +0000
commit52195a6b1dd478875a93935df27d7bcacb14f289 (patch)
tree052233b34e4c6a9a0d6268426e650500817265f6 /modules/node/node.module
parent30ae1fb5596cc59e27717262a04e6447d27cebb4 (diff)
downloadbrdo-52195a6b1dd478875a93935df27d7bcacb14f289.tar.gz
brdo-52195a6b1dd478875a93935df27d7bcacb14f289.tar.bz2
#525622 by scor, catch, and yched: Allow Entity path callback to deal with options.
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,
+ );
}
/**