function helper_entity_user_uri in Helper 7
Implements callback_entity_info_uri().
A duplicate of user_uri() that does not output a link for anonymous users.
1 string reference to 'helper_entity_user_uri'
- helper_entity_info_alter in ./
helper.module - Implements hook_entity_info_alter().
File
- ./
helper.module, line 131
Code
function helper_entity_user_uri($user) {
if (!empty($user->uid)) {
return array(
'path' => 'user/' . $user->uid,
);
}
}