You are here

function weather_install in Weather 2.0.x

Same name and namespace in other branches
  1. 8 weather.install \weather_install()
  2. 5.6 weather.install \weather_install()
  3. 5 weather.install \weather_install()
  4. 6.5 weather.install \weather_install()
  5. 7.3 weather.install \weather_install()
  6. 7 weather.install \weather_install()
  7. 7.2 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(),
  ]));
}