Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/src/Controller/UserController.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
310 ]; | 310 ]; |
311 user_cancel($edit, $user->id(), $account_data['cancel_method']); | 311 user_cancel($edit, $user->id(), $account_data['cancel_method']); |
312 // Since user_cancel() is not invoked via Form API, batch processing | 312 // Since user_cancel() is not invoked via Form API, batch processing |
313 // needs to be invoked manually and should redirect to the front page | 313 // needs to be invoked manually and should redirect to the front page |
314 // after completion. | 314 // after completion. |
315 return batch_process(''); | 315 return batch_process('<front>'); |
316 } | 316 } |
317 else { | 317 else { |
318 drupal_set_message(t('You have tried to use an account cancellation link that has expired. Please request a new one using the form below.'), 'error'); | 318 drupal_set_message(t('You have tried to use an account cancellation link that has expired. Please request a new one using the form below.'), 'error'); |
319 return $this->redirect('entity.user.cancel_form', ['user' => $user->id()], ['absolute' => TRUE]); | 319 return $this->redirect('entity.user.cancel_form', ['user' => $user->id()], ['absolute' => TRUE]); |
320 } | 320 } |