Skip to:
Content

BuddyPress.org

Changeset 3352


Ignore:
Timestamp:
11/05/2010 03:18:59 PM (14 years ago)
Author:
boonebgorges
Message:

Adds action and filter hooks to various functions in bp-core-signup.php. Fixes #2657.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-settings.php

    r3300 r3352  
    5858        if ( !$pass_error && wp_update_user( get_object_vars( $current_user ) ) )
    5959            $bp_settings_updated = true;
     60           
     61        do_action( 'bp_core_general_settings_after_save' );
    6062    }
    6163
     
    6769
    6870function bp_core_screen_general_settings_title() {
    69     _e( 'General Settings', 'buddypress' );
     71    echo apply_filters( 'bp_core_general_settings_title', __( 'General Settings', 'buddypress' ) );
    7072}
    7173
     
    9294        <input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small" /> &nbsp;<?php _e( 'New Password', 'buddypress' ) ?><br />
    9395        <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small" /> &nbsp;<?php _e( 'Repeat New Password', 'buddypress' ) ?>
     96       
     97        <?php do_action( 'bp_core_general_settings_before_submit' ) ?>
    9498
    9599        <div class="submit">
    96100            <input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" id="submit" class="auto" />
    97101        </div>
     102       
     103        <?php do_action( 'bp_core_general_settings_after_submit' ) ?>
    98104
    99105        <?php wp_nonce_field('bp_settings_general') ?>
     
    119125
    120126        $bp_settings_updated = true;
     127       
     128        do_action( 'bp_core_notification_settings_after_save' );
    121129    }
    122130
     
    128136
    129137function bp_core_screen_notification_settings_title() {
    130     _e( 'Notification Settings', 'buddypress' );
     138    echo apply_filters( 'bp_core_notification_settings_title', __( 'Notification Settings', 'buddypress' ) );;
    131139}
    132140
     
    150158        </div>
    151159
     160        <?php do_action( 'bp_core_notification_settings_after_submit' ) ?>
     161       
    152162        <?php wp_nonce_field('bp_settings_notifications') ?>
    153163
     
    174184
    175185function bp_core_screen_delete_account_title() {
    176     _e( 'Delete Account', 'buddypress' );
     186    echo apply_filters( 'bp_core_delete_account_title', __( 'Delete Account', 'buddypress' ) );
    177187}
    178188
     
    188198        <input type="checkbox" name="delete-account-understand" id="delete-account-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-account-button').disabled = ''; } else { document.getElementById('delete-account-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting my account.', 'buddypress' ); ?>
    189199
     200        <?php do_action( 'bp_core_delete_account_before_submit' ) ?>
     201       
    190202        <div class="submit">
    191203            <input type="submit" disabled="disabled" value="<?php _e( 'Delete My Account', 'buddypress' ) ?> &rarr;" id="delete-account-button" name="delete-account-button" />
    192204        </div>
     205       
     206        <?php do_action( 'bp_core_delete_account_after_submit' ) ?>
    193207
    194208        <?php wp_nonce_field('delete-account') ?>
Note: See TracChangeset for help on using the changeset viewer.