You are here

view_password.post_update.php in View Password 8.5

Same filename and directory in other branches
  1. 6.0.x view_password.post_update.php

Post update functions for View password module.

File

view_password.post_update.php
View source
<?php

/**
 * @file
 * Post update functions for View password module.
 */

/**
 * Moves configuration to own namespace.
 */
function view_password_post_update_move_configuration() {
  $factory = \Drupal::configFactory();
  $config = $factory
    ->getEditable('pwd.settings');
  $factory
    ->getEditable('view_password.settings')
    ->set('form_ids', $config
    ->get('pwd.form_id_pwd'))
    ->save(TRUE);
  $config
    ->delete();
}

Functions

Namesort descending Description
view_password_post_update_move_configuration Moves configuration to own namespace.