Changeset 7122
- Timestamp:
- 05/28/2013 03:48:47 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-templates/bp-legacy/buddypress/members/register.php
r6975 r7122 70 70 71 71 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 72 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>72 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 73 73 <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" /> 74 74 … … 78 78 79 79 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 80 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>80 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 81 81 <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea> 82 82 … … 86 86 87 87 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 88 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>88 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 89 89 <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"> 90 90 <?php bp_the_profile_field_options(); ?> … … 96 96 97 97 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 98 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>98 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 99 99 <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple"> 100 100 <?php bp_the_profile_field_options(); ?> … … 108 108 <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span> 109 109 110 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>110 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 111 111 <?php bp_the_profile_field_options(); ?> 112 112 … … 123 123 <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span> 124 124 125 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>125 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 126 126 <?php bp_the_profile_field_options(); ?> 127 127 </div> … … 133 133 <div class="datebox"> 134 134 <label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 135 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>135 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 136 136 137 137 <select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day"> -
trunk/bp-themes/bp-default/registration/register.php
r6994 r7122 75 75 76 76 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 77 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>77 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 78 78 <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" /> 79 79 … … 83 83 84 84 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 85 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>85 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 86 86 <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea> 87 87 … … 91 91 92 92 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 93 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>93 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 94 94 <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"> 95 95 <?php bp_the_profile_field_options(); ?> … … 101 101 102 102 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 103 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>103 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 104 104 <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple"> 105 105 <?php bp_the_profile_field_options(); ?> … … 113 113 <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span> 114 114 115 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>115 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 116 116 <?php bp_the_profile_field_options(); ?> 117 117 … … 128 128 <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span> 129 129 130 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>130 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 131 131 <?php bp_the_profile_field_options(); ?> 132 132 </div> … … 138 138 <div class="datebox"> 139 139 <label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> 140 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>140 <?php do_action( bp_get_the_profile_field_errors_action() ); ?> 141 141 142 142 <select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day"> -
trunk/bp-xprofile/bp-xprofile-template.php
r6415 r7122 387 387 return apply_filters( 'bp_get_the_profile_field_input_name', 'field_' . $field->id . $array_box ); 388 388 } 389 390 /** 391 * Returns the action name for any signup errors related to this profile field 392 * 393 * In the registration templates, signup errors are pulled from the global 394 * object and rendered at actions that look like 'bp_field_12_errors'. This 395 * function allows the action name to be easily concatenated and called in the 396 * following fashion: 397 * do_action( bp_get_the_profile_field_errors_action() ); 398 * 399 * @since BuddyPress (1.8) 400 * @return string The _errors action name corresponding to this profile field 401 */ 402 function bp_get_the_profile_field_errors_action() { 403 global $field; 404 return 'bp_field_' . $field->id . '_errors'; 405 } 389 406 390 407 /**
Note: See TracChangeset
for help on using the changeset viewer.