diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 06:26:49 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 06:26:49 +0000 |
commit | 83c97345e8eada544d7da4586e2c77db469ed5b1 (patch) | |
tree | a1f3be8ca91873c1da221d108470bbac8dc1bb0d /modules/user/user.module | |
parent | c78283e81bb60fd6c4574ad65d2b854dca524a98 (diff) | |
download | brdo-83c97345e8eada544d7da4586e2c77db469ed5b1.tar.gz brdo-83c97345e8eada544d7da4586e2c77db469ed5b1.tar.bz2 |
#525622 by Frando, yched, et al: Add entity hook callbacks so that 'as link' formatters have a generic way to build the url of an 'entity'.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 313ff34a4..0b7c17a93 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -149,6 +149,13 @@ function user_entity_info() { } /** + * Entity path callback. + */ +function user_path($user) { + return 'user/' . $user->uid; +} + +/** * Implements hook_field_extra_fields(). */ function user_field_extra_fields() { |