You are here

function flag_init in Flag 6

Same name and namespace in other branches
  1. 5 flag.module \flag_init()
  2. 6.2 flag.module \flag_init()
  3. 7.3 flag.module \flag_init()
  4. 7.2 flag.module \flag_init()

Implementation of hook_init().

File

./flag.module, line 82

Code

function flag_init() {
  $path = drupal_get_path('module', 'flag');
  if (module_exists('trigger')) {
    include_once $path . '/includes/flag.actions.inc';
  }
  if (module_exists('token')) {
    include_once $path . '/includes/flag.token.inc';
  }
}