summaryrefslogtreecommitdiff
path: root/modules/user/user.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/user/user.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/user/user.module')
-rw-r--r--modules/user/user.module10
1 files changed, 6 insertions, 4 deletions
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,
+ );
}
/**