You are here

function _ad_channel_get_name in Advertisement 7

Same name and namespace in other branches
  1. 6.3 channel/ad_channel.module \_ad_channel_get_name()
  2. 6.2 channel/ad_channel.module \_ad_channel_get_name()
1 call to _ad_channel_get_name()
ad_channel_form_alter in channel/ad_channel.module
Implementation of hook_form_alter(). Generate a form for selecting channels to associate with an advertisement.

File

channel/ad_channel.module, line 384
Ad Channel module.

Code

function _ad_channel_get_name($chid) {
  static $names = array();
  if (!isset($names[$chid])) {
    $names[$chid] = db_query('SELECT name FROM {ad_channel} WHERE chid = %d', $chid)
      ->fetchField();
  }
  return $names[$chid];
}