You are here

password_eye.install in Password Eye 2.0.x

Same filename and directory in other branches
  1. 8 password_eye.install

Contains \Drupal\password_eye\password_eye.install.

File

password_eye.install
View source
<?php

/**
 * @file
 * Contains \Drupal\password_eye\password_eye.install.
 */

/**
 * Implements hook_install().
 */
function password_eye_install() {

  // Set default values for config which require dynamic values.
  \Drupal::configFactory()
    ->getEditable('password_eye.settings')
    ->set('password_eye.form_id_password', 'user_login_form')
    ->save();
}

/**
 * Implements hook_uninstall().
 */
function password_eye_uninstall() {
  \Drupal::configFactory()
    ->getEditable('password_eye.settings')
    ->delete();
}

Functions