You are here

function weather_install in Weather 7.2

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. 2.0.x weather.install \weather_install()

Implements hook_install().

Currently, it's only needed to insert data into the weather_icao table. We use a helper function for this task.

File

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

Code

function weather_install() {
  _weather_data_installation();

  // Save the first new date format into variables.
  variable_set('date_format_weather', 'F j, Y');
}