avatars.install in Avatar Kit 8.2
Same filename and directory in other branches
Install, update and uninstall functions for Avatar Kit.
File
avatars.installView source
<?php
/**
* @file
* Install, update and uninstall functions for Avatar Kit.
*/
/**
* Implements hook_install().
*/
function avatars_install() {
// Set the default hash string for user picture field.
$config = \Drupal::configFactory();
$config
->getEditable('field.field.user.user.user_picture')
->set('third_party_settings.avatars.hash.contents', '[user:mail]')
->save(TRUE);
}
Functions
Name![]() |
Description |
---|---|
avatars_install | Implements hook_install(). |