Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/12/2014 12:16:58 PM (12 years ago)
Author:
boonebgorges
Message:

Add action hooks in the xprofile admin interface

Fixes #5674

Props Offereins

File:
1 edited

Legend:

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

    r8785 r8801  
    512512                                                <div id="postbox-container-1" class="postbox-container">
    513513                                                        <div id="side-sortables" class="meta-box-sortables ui-sortable">
     514
     515                                                                <?php
     516                                                                /**
     517                                                                 * Fires before XProfile Group submit metabox.
     518                                                                 *
     519                                                                 * @since BuddyPress (2.1.0)
     520                                                                 *
     521                                                                 * @param BP_XProfile_Group $this Current XProfile group.
     522                                                                 */
     523                                                                do_action( 'xprofile_group_before_submitbox', $this );
     524                                                                ?>
     525
    514526                                                                <div id="submitdiv" class="postbox">
    515527                                                                        <div id="handlediv"><h3 class="hndle"><?php _e( 'Save', 'buddypress' ); ?></h3></div>
     
    517529                                                                                <div id="submitcomment" class="submitbox">
    518530                                                                                        <div id="major-publishing-actions">
     531
     532                                                                                                <?php
     533                                                                                                /**
     534                                                                                                 * Fires at the beginning of the XProfile Group publishing actions section.
     535                                                                                                 *
     536                                                                                                 * @since BuddyPress (2.1.0)
     537                                                                                                 *
     538                                                                                                 * @param BP_XProfile_Group $this Current XProfile group.
     539                                                                                                 */
     540                                                                                                do_action( 'xprofile_group_submitbox_start', $this );
     541                                                                                                ?>
     542
    519543                                                                                                <div id="delete-action">
    520544                                                                                                        <a href="users.php?page=bp-profile-setup" class="submitdelete deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a>
     
    529553                                                                        </div>
    530554                                                                </div>
     555
     556                                                                <?php
     557                                                                /**
     558                                                                 * Fires after XProfile Group submit metabox.
     559                                                                 *
     560                                                                 * @since BuddyPress (2.1.0)
     561                                                                 *
     562                                                                 * @param BP_XProfile_Group $this Current XProfile group.
     563                                                                 */
     564                                                                do_action( 'xprofile_group_after_submitbox', $this );
     565                                                                ?>
    531566                                                        </div>
    532567                                                </div>
     
    893928
    894929                                                <div id="postbox-container-1" class="postbox-container">
     930
     931                                                        <?php
     932                                                        /**
     933                                                         * Fires before XProfile Field submit metabox.
     934                                                         *
     935                                                         * @since BuddyPress (2.1.0)
     936                                                         *
     937                                                         * @param BP_XProfile_Field $this Current XProfile field.
     938                                                         */
     939                                                        do_action( 'xprofile_field_before_submitbox', $this );
     940                                                        ?>
     941
    895942                                                        <div id="submitdiv" class="postbox">
    896943                                                                <h3><?php _e( 'Submit', 'buddypress' ); ?></h3>
     
    898945                                                                        <div id="submitcomment" class="submitbox">
    899946                                                                                <div id="major-publishing-actions">
     947
     948                                                                                        <?php
     949                                                                                        /**
     950                                                                                         * Fires at the beginning of the XProfile Field publishing actions section.
     951                                                                                         *
     952                                                                                         * @since BuddyPress (2.1.0)
     953                                                                                         *
     954                                                                                         * @param BP_XProfile_Field $this Current XProfile field.
     955                                                                                         */
     956                                                                                        do_action( 'xprofile_field_submitbox_start', $this );
     957                                                                                        ?>
     958
    900959                                                                                        <input type="hidden" name="field_order" id="field_order" value="<?php echo esc_attr( $this->field_order ); ?>" />
    901960                                                                                        <div id="publishing-action">
     
    911970                                                                </div>
    912971                                                        </div>
     972
     973                                                        <?php
     974                                                        /**
     975                                                         * Fires after XProfile Field submit metabox.
     976                                                         *
     977                                                         * @since BuddyPress (2.1.0)
     978                                                         *
     979                                                         * @param BP_XProfile_Field $this Current XProfile field.
     980                                                         */
     981                                                        do_action( 'xprofile_field_after_submitbox', $this );
     982                                                        ?>
    913983
    914984                                                        <?php /* Field 1 is the fullname field, which cannot have custom visibility */ ?>
Note: See TracChangeset for help on using the changeset viewer.