function _weather_get_configs_in_use in Weather 5
Same name and namespace in other branches
- 5.6 weather.module \_weather_get_configs_in_use()
- 6.5 weather.module \_weather_get_configs_in_use()
Determine how many configurations exist for the given user id.
2 calls to _weather_get_configs_in_use()
- weather_block in ./
weather.module - Generate HTML for the weather block
- weather_custom_block in ./
weather.module - Show a configuration page for a custom weather block
File
- ./
weather.module, line 624 - Display <acronym title="METeorological Aerodrome Report">METAR</acronym> weather data from anywhere in the world
Code
function _weather_get_configs_in_use($uid) {
$configs = array();
$result = db_query("SELECT * FROM {weather_config}\n WHERE uid=%d\n ORDER BY weight ASC, real_name ASC", $uid);
while ($row = db_fetch_array($result)) {
$configs[] = array(
'cid' => $row['cid'],
'real_name' => $row['real_name'],
);
}
return $configs;
}