You are here

function languageicons_install in Language Icons 8

Same name and namespace in other branches
  1. 6.2 languageicons.install \languageicons_install()
  2. 6 languageicons.install \languageicons_install()
  3. 7 languageicons.install \languageicons_install()

Implements hook_install().

File

./languageicons.install, line 11
Install, uninstall, schema and update hooks for Language Icons.

Code

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();
}