Commit cb472db4 authored by Dave Reid's avatar Dave Reid
Browse files

#968752 by Dave Reid: Fixed fatal error when submitting user account settings...

#968752 by Dave Reid: Fixed fatal error when submitting user account settings (double link bundle submission handling).
parent 9f881b3d
......@@ -100,14 +100,6 @@ function xmlsitemap_user_form_user_admin_settings_alter(&$form, $form_state) {
xmlsitemap_add_link_bundle_settings($form, $form_state, 'user', 'user');
$form['email_title'] += array('#weight' => 10);
$form['email'] += array('#weight' => 10);
array_unshift($form['#submit'], 'xmlsitemap_user_user_admin_settings_submit');
}
function xmlsitemap_user_user_admin_settings_submit($form, &$form_state) {
xmlsitemap_link_bundle_settings_save('user', 'user', $form_state['values']['xmlsitemap']);
// Do not allow system_settings_form_submit() to run variable_set() on this.
unset($form_state['values']['xmlsitemap']);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment