uid); } if ($v[0]['content_type'] == 'comment') { $comment = _comment_load($v[0]['content_id']); user_titles_set_user_title($comment->uid); } break; } } } /** * Implementation of hook_user_titles(). */ function ut_user_karma_user_titles($op, $uid = NULL) { switch ($op) { case 'register': return 'ut_user_karma'; case 'name': return t('User karma'); case 'description': return t('Different karma values are assigned to user actions and votes of user content'); case 'units': return t('Karma'); case 'url': return 'admin/settings/user_karma'; case 'get': return user_karma_user_karma($uid); } }