languageicons.install in Language Icons 8
Same filename and directory in other branches
Install, uninstall, schema and update hooks for Language Icons.
File
languageicons.installView 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
Name | Description |
---|---|
languageicons_install | Implements hook_install(). |