Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes

This commit is contained in:
Pantheon Automation 2016-04-20 09:56:34 -07:00 committed by Greg Anderson
parent b11a755ba8
commit c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions

View file

@ -85,3 +85,25 @@ function user_install() {
))
->save();
}
/**
* @addtogroup updates-8.1.0-beta
* @{
*/
/**
* Fix invalid token in the status_blocked email body.
*/
function user_update_8100() {
$config_factory = \Drupal::configFactory();
$config = $config_factory->getEditable('user.mail');
$mail = $config->get('status_blocked');
if (strpos($mail['body'], '[site:account-name]') !== FALSE) {
$mail['body'] = str_replace('[site:account-name]', '[site:name]', $mail['body']);
$config->set('status_blocked', $mail)->save(TRUE);
}
}
/**
* @} End of "addtogroup updates-8.1.0-beta".
*/