updated drupal core to 7.51
This commit is contained in:
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2016-02-24
|
||||
version = "7.43"
|
||||
; Information added by Drupal.org packaging script on 2016-10-05
|
||||
version = "7.51"
|
||||
project = "drupal"
|
||||
datestamp = "1456343506"
|
||||
datestamp = "1475694174"
|
||||
|
||||
|
@@ -62,3 +62,21 @@ function user_form_test_current_password($form, &$form_state, $account) {
|
||||
function user_form_test_current_password_submit($form, &$form_state) {
|
||||
drupal_set_message(t('The password has been validated and the form submitted successfully.'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_form_FORM_ID_alter().
|
||||
*/
|
||||
function user_form_test_form_user_profile_form_alter(&$form, &$form_state) {
|
||||
if (variable_get('user_form_test_user_profile_form_rebuild', FALSE)) {
|
||||
$form['#submit'][] = 'user_form_test_user_account_submit';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Submit function for user_profile_form().
|
||||
*/
|
||||
function user_form_test_user_account_submit($form, &$form_state) {
|
||||
// Rebuild the form instead of letting the process end. This allows us to
|
||||
// test for bugs that can be triggered in contributed modules.
|
||||
$form_state['rebuild'] = TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user