function ad_channel_channel_load in Advertisement 7
Same name and namespace in other branches
- 6.3 channel/ad_channel.module \ad_channel_channel_load()
- 6.2 channel/ad_channel.module \ad_channel_channel_load()
Load a specified channel.
File
- channel/
ad_channel.module, line 111 - Ad Channel module.
Code
function ad_channel_channel_load($chid = 0) {
static $channels = array();
if (!isset($channels[$chid])) {
$channels[$chid] = db_query('SELECT * FROM {ad_channel} WHERE chid = %d', $chid)
->fetch();
}
return $channels[$chid];
}