You are here

function weather_install in Weather 8

Same name and namespace in other branches
  1. 5.6 weather.install \weather_install()
  2. 5 weather.install \weather_install()
  3. 6.5 weather.install \weather_install()
  4. 7.3 weather.install \weather_install()
  5. 7 weather.install \weather_install()
  6. 7.2 weather.install \weather_install()
  7. 2.0.x weather.install \weather_install()

Implements hook_install().

File

./weather.install, line 13
Install, update and uninstall functions for the weather module.

Code

function weather_install() {
  \Drupal::messenger()
    ->addMessage(t('You should now import weather places to use within the module.' . ' To start the import, visit the <a href="@url">module configuration page</a>.', [
    '@url' => Url::fromRoute('weather.settings')
      ->toString(),
  ]));
}