Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/14/2011 08:52:29 PM (14 years ago)
Author:
djpaul
Message:

Tidy up bp_core_get_userlink() phpdoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-functions.php

    r4444 r4510  
    335335 * Returns a HTML formatted link for a user with the user's full name as the link text.
    336336 * eg: <a href="http://andy.domain.com/">Andy Peatling</a>
    337  * Optional parameters will return just the name, or just the URL, or disable "You" text when
    338  * user matches the logged in user.
    339  *
    340  * [NOTES: This function needs to be cleaned up or split into separate functions]
    341  *
    342  * @package BuddyPress Core
    343  * @param $uid int User ID to check.
     337 * Optional parameters will return just the name or just the URL.
     338 *
     339 * @param int $user_id User ID to check.
    344340 * @param $no_anchor bool Disable URL and HTML and just return full name. Default false.
    345341 * @param $just_link bool Disable full name and HTML and just return the URL text. Default false.
    346  * @param $no_you bool Disable replacing full name with "You" when logged in user is equal to the current user. Default false.
    347  * @global $userdata WordPress user data for the current logged in user.
    348  * @uses get_userdata() WordPress function to fetch the userdata for a user ID
    349  * @uses bp_fetch_user_fullname() Returns the full name for a user based on user ID.
    350  * @uses bp_core_get_userurl() Returns the URL for the user with no anchor tag based on user ID
    351342 * @return false on no match
    352343 * @return str The link text based on passed parameters.
     344 * @todo This function needs to be cleaned up or split into separate functions
    353345 */
    354346function bp_core_get_userlink( $user_id, $no_anchor = false, $just_link = false ) {
Note: See TracChangeset for help on using the changeset viewer.