1.20.x user.install user_update_1012()

Update 'Find user accounts' to 'Manage user accounts'

Related topics

File

modules/user/user.install, line 1132
Install, update and uninstall functions for the user module.

Code

function user_update_1012() {
  $config = config('views.view.user_admin');
  if ($config->get('display.default.display_options.title') == 'User accounts') {
    $config->set('display.default.display_options.title', 'Manage user accounts');
  }
  if ($config->get('display.page.display_options.menu.title') == 'Find user accounts') {
    $config->set('display.page.display_options.menu.title', 'Manage user accounts');
  }
  $config->save();
}