Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/01/2015 04:18:13 AM (9 years ago)
Author:
tw2113
Message:

First pass of documentation cleanup for the XProfile Component.

See #6406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-settings.php

    r10140 r10163  
    1111
    1212/**
    13  * Query all profile fields and their visibility data for display in settings
     13 * Query all profile fields and their visibility data for display in settings.
    1414 *
    1515 * @since 2.0.0
    1616 *
    17  * @param array $args
     17 * @param array|string $args Array of args for the settings fields.
    1818 *
    1919 * @return array
     
    2121function bp_xprofile_get_settings_fields( $args = '' ) {
    2222
    23     // Parse the possible arguments
     23    // Parse the possible arguments.
    2424    $r = bp_parse_args( $args, array(
    2525        'user_id'                => bp_displayed_user_id(),
     
    3838
    3939/**
    40  * Adds feedback messages when successfully saving profile field settings
     40 * Adds feedback messages when successfully saving profile field settings.
    4141 *
    4242 * @since 2.0.0
     
    4747function bp_xprofile_settings_add_feedback_message() {
    4848
    49     // Default message type is success
     49    // Default message type is success.
    5050    $type    = 'success';
    5151    $message = __( 'Your profile settings have been saved.',        'buddypress' );
    5252
    53     // Community moderator editing another user's settings
     53    // Community moderator editing another user's settings.
    5454    if ( ! bp_is_my_profile() && bp_core_can_edit_settings() ) {
    5555        $message = __( "This member's profile settings have been saved.", 'buddypress' );
    5656    }
    5757
    58     // Add the message
     58    // Add the message.
    5959    bp_core_add_message( $message, $type );
    6060}
Note: See TracChangeset for help on using the changeset viewer.