uid); break; } } } /** * Implementation of hook_user_titles(). */ function ut_userpoints_user_titles($op, $uid = NULL) { switch ($op) { case 'register': return 'ut_userpoints'; case 'name': return t('User points'); case 'description': return t('Different points values are assigned to user actions'); case 'units': return t('Points'); case 'url': return 'admin/settings/userpoints'; case 'get': return userpoints_get_current_points($uid); } }