password_eye.install in Password Eye 8
Same filename and directory in other branches
Contains \Drupal\password_eye\password_eye.install.
File
password_eye.installView 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
Name | Description |
---|---|
password_eye_install | Implements hook_install(). |
password_eye_uninstall | Implements hook_uninstall(). |