Skip to:
Content

BuddyPress.org

Ticket #5673: 5673.patch

File 5673.patch, 1.4 KB (added by slaFFik, 10 years ago)

Adding several actions

  • src/bp-xprofile/bp-xprofile-admin.php

     
    119119
    120120                                                                <?php endif; ?>
    121121
     122                                                                <?php do_action('xprofile_admin_group_action', $group); ?>
     123
    122124                                                        </div>
    123125                                                </div>
    124126
     
    379381        $field = $admin_field; ?>
    380382
    381383        <fieldset id="field_<?php echo esc_attr( $field->id ); ?>" class="sortable<?php echo ' ' . $field->type; if ( !empty( $class ) ) echo ' ' . $class; ?>">
    382                 <legend><span><?php bp_the_profile_field_name(); ?> <?php if( !$field->can_delete ) : ?> <?php _e( '(Primary)', 'buddypress' ); endif; ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(Required)', 'buddypress' ) ?><?php endif; ?></span></legend>
     384                <legend>
     385                        <span>
     386                                <?php bp_the_profile_field_name(); ?>
     387                                <?php if( !$field->can_delete ) : ?> <?php _e( '(Primary)', 'buddypress' ); endif; ?>
     388                                <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(Required)', 'buddypress' ) ?><?php endif; ?>
     389                                <?php do_action('xprofile_admin_field_name_legend', $field); ?>
     390                        </span>
     391                </legend>
    383392                <div class="field-wrapper">
    384393
    385394                        <?php
     
    408417                                        </div>
    409418
    410419                                <?php endif; ?>
     420
     421                                <?php do_action('xprofile_admin_field_action', $field); ?>
     422
    411423                        </div>
    412424                </div>
    413425        </fieldset>