You are here

function ad_image_init in Advertisement 5

Same name and namespace in other branches
  1. 5.2 image/ad_image.module \ad_image_init()

Drupal _init hook. Include ad_image_views.inc if the views.module is enabled.

File

image/ad_image.module, line 33
Enhances the ad module to support banner ads.

Code

function ad_image_init() {
  if (function_exists('drupal_set_content')) {
    if (module_exists('views')) {
      include drupal_get_path('module', 'ad_image') . '/ad_image_views.inc';
    }
  }
}