From 83c97345e8eada544d7da4586e2c77db469ed5b1 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 13 Jan 2010 06:26:49 +0000 Subject: #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'. --- modules/user/user.module | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/user/user.module') 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 @@ -148,6 +148,13 @@ function user_entity_info() { return $return; } +/** + * Entity path callback. + */ +function user_path($user) { + return 'user/' . $user->uid; +} + /** * Implements hook_field_extra_fields(). */ -- cgit v1.2.3