Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/03/2010 06:53:59 AM (17 years ago)
Author:
johnjamesjacoby
Message:

Allow xprofile field groups to be reordered. Also swept through xprofile files and cleaned up code formatting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r2695 r2798  
    6161                } elseif ( $this->current_group + 1 == $this->group_count ) {
    6262                        do_action('xprofile_template_loop_end');
    63                         // Do some cleaning up after the loop
     63                        /* Do some cleaning up after the loop */
    6464                        $this->rewind_groups();
    6565                }
    … …  
    7575                $group = $this->next_group();
    7676
    77                 if ( 0 == $this->current_group ) // loop has just started
     77                if ( 0 == $this->current_group ) /* loop has just started */
    7878                        do_action('xprofile_template_loop_start');
    7979        }
    … …  
    116116                        return true;
    117117                } elseif ( $this->current_field + 1 == $this->field_count ) {
    118                         // Do some cleaning up after the loop
     118                        /* Do some cleaning up after the loop */
    119119                        $this->rewind_fields();
    120120                }
    … …  
    547547        function bp_get_profile_field_data( $args = '' ) {
    548548                $defaults = array(
    549                         'field' => false, // Field name or ID.
     549                        'field' => false, /* Field name or ID. */
    550550                        'user_id' => $bp->displayed_user->id
    551                         );
     551                );
    552552
    553553                $r = wp_parse_args( $args, $defaults );
    … …  
    657657                        $profile_group_id = 1;
    658658
    659                 return apply_filters( 'bp_get_current_profile_group_id', $profile_group_id ); // admin/profile/edit/[group-id]
     659                /* admin/profile/edit/[group-id] */
     660                return apply_filters( 'bp_get_current_profile_group_id', $profile_group_id );
    660661        }
    661662
Note: See TracChangeset for help on using the changeset viewer.