You are here

function ad_channel_theme_registry_alter in Advertisement 6.2

Same name and namespace in other branches
  1. 6.3 channel/ad_channel.module \ad_channel_theme_registry_alter()
  2. 7 channel/ad_channel.module \ad_channel_theme_registry_alter()

Register our own ad_admin_ads theme function.

File

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

Code

function ad_channel_theme_registry_alter(&$theme_registry) {
  $list = variable_get('ad_channel_admin_list', AD_CHANNEL_LIST_CHANNEL);
  if ($list == AD_CHANNEL_LIST_CHANNEL || $list == AD_CHANNEL_LIST_BOTH) {
    if (!empty($theme_registry['ad_admin_ads'])) {
      $theme_registry['ad_admin_ads']['function'] = 'ad_channel_ad_admin_ads';
    }
  }
}