You are here

languageicons.install in Language Icons 8

Install, uninstall, schema and update hooks for Language Icons.

File

languageicons.install
View source
<?php

/**
 * @file
 * Install, uninstall, schema and update hooks for Language Icons.
 */

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

  // Use our supplied set of icons by default.
  $path = drupal_get_path('module', 'languageicons') . '/flags/*.png';
  \Drupal::configFactory()
    ->getEditable('languageicons.settings')
    ->set('path', $path)
    ->save();
}

Functions

Namesort descending Description
languageicons_install Implements hook_install().