function eloqua_init in Eloqua 7
Same name and namespace in other branches
- 6 eloqua.module \eloqua_init()
Implements hook_init().
File
- ./
eloqua.module, line 17 - Eloqua Integration Module
Code
function eloqua_init() {
global $user;
if (_eloqua_visibility_pages() == 1) {
if (_eloqua_visibility_roles($user)) {
$site_id = check_plain(variable_get('eloqua_site_id', 0));
drupal_add_js(array(
'eloqua' => array(
'siteId' => $site_id,
),
), 'setting');
drupal_add_js(drupal_get_path('module', 'eloqua') . '/eloqua.js');
}
}
}