function hook_eu_cookie_compliance_path_match_alter in EU Cookie Compliance (GDPR Compliance) 7
Same name and namespace in other branches
- 8 eu_cookie_compliance.api.php \hook_eu_cookie_compliance_path_match_alter()
- 7.2 eu_cookie_compliance.api.php \hook_eu_cookie_compliance_path_match_alter()
- 2.0.x eu_cookie_compliance.api.php \hook_eu_cookie_compliance_path_match_alter()
Take control of EU Cookie Compliance path exclusion.
Parameters
bool $excluded: Whether this path is excluded from cookie compliance behavior.
string $path: Current string path.
string $setting: Admin variable of excluded paths.
Related topics
1 invocation of hook_eu_cookie_compliance_path_match_alter()
- eu_cookie_compliance_page_build in ./
eu_cookie_compliance.module - Implements hook_page_build().
File
- ./
eu_cookie_compliance.api.php, line 40 - Documentation for the EU Cookie Compliance module.
Code
function hook_eu_cookie_compliance_path_match_alter(&$excluded, $path, $setting) {
$node = menu_get_object('node');
if ($node && $node->type === 'my_type') {
$excluded = TRUE;
}
}