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/user/user.module | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 97de9a029..87ffe3a77 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -125,7 +125,7 @@ function user_entity_info() { 'label' => t('User'), 'controller class' => 'UserController', 'base table' => 'users', - 'path callback' => 'user_path', + 'uri callback' => 'user_uri', 'fieldable' => TRUE, 'object keys' => array( 'id' => 'uid', @@ -150,10 +150,12 @@ function user_entity_info() { } /** - * Entity path callback. + * Entity uri callback. */ -function user_path($user) { - return 'user/' . $user->uid; +function user_uri($user) { + return array( + 'path' => 'user/' . $user->uid, + ); } /** -- cgit v1.2.3