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/node/node.module | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/node/node.module') 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, + ); } /** -- cgit v1.2.3