You are here

function simplenews_init in Simplenews 5

Same name and namespace in other branches
  1. 6.2 simplenews.module \simplenews_init()
  2. 6 simplenews.module \simplenews_init()
  3. 7.2 simplenews.module \simplenews_init()
  4. 7 simplenews.module \simplenews_init()

Implementation of hook_init().

File

./simplenews.module, line 26

Code

function simplenews_init() {

  // only bother when we are not serving a cached page. check for which function that only exists afterwards
  if (function_exists('drupal_set_content')) {
    if (module_exists('views')) {
      include drupal_get_path('module', 'simplenews') . '/simplenews_views.inc';
    }
  }
}