You are here

avatars.install in Avatar Kit 8.2

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

Install, update and uninstall functions for Avatar Kit.

File

avatars.install
View 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

Namesort descending Description
avatars_install Implements hook_install().