You are here

function weather_get_information_about_geoid in Weather 7.2

Same name and namespace in other branches
  1. 7.3 weather.common.inc \weather_get_information_about_geoid()

Get information about a GeoID.

Parameters

string $wanted_geoid: GeoID.

Return value

object The information about the GeoID or FALSE.

5 calls to weather_get_information_about_geoid()
weather_get_location_settings in ./weather.forms.inc
Return location settings for a specific id.
weather_location_settings_form_validate in ./weather.forms.inc
Implements hook_form_validate().
_weather_calculate_sun_info in ./weather_theme.inc
Calculate the times of sunrise and sunset.
_weather_get_link_for_geoid in ./weather.common.inc
Construct the link for the given GeoID.
_weather_update_places in ./weather_parser.inc
Handle updates to the weather_places table.

File

./weather.common.inc, line 195
Common functions in a separate file to reduce size of weather.module.

Code

function weather_get_information_about_geoid($wanted_geoid) {
  return db_query('SELECT * FROM {weather_places} WHERE geoid=:geoid', array(
    ':geoid' => $wanted_geoid,
  ))
    ->fetchObject();
}