function flag_init in Flag 5
Same name and namespace in other branches
- 6.2 flag.module \flag_init()
- 6 flag.module \flag_init()
- 7.3 flag.module \flag_init()
- 7.2 flag.module \flag_init()
Implementation of hook_init().
File
- ./
flag.module, line 79 - The Flag module.
Code
function flag_init() {
// Only load for non-cached pages.
if (function_exists('drupal_set_content')) {
$path = drupal_get_path('module', 'flag');
include_once $path . '/flag.inc';
if (module_exists('views')) {
include_once $path . '/includes/flag.views.inc';
}
if (module_exists('actions')) {
include_once $path . '/includes/flag.actions.inc';
}
if (module_exists('token')) {
include_once $path . '/includes/flag.token.inc';
}
}
}