function hook_esi_context_cookies_alter in ESI: Edge Side Includes 7.3
Change the context-specific cookie data before it's sent as cookies.
1 function implements hook_esi_context_cookies_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- esi_esi_context_cookies_alter in ./
esi.module - Implements hook_esi_context_cookies_alter().
1 invocation of hook_esi_context_cookies_alter()
- esi__get_cookie_data in ./
esi.module - Get all the relevant cookie data for an account.
File
- ./
esi.api.inc, line 86 - API documentation for hooks defined by the ESI module.
Code
function hook_esi_context_cookies_alter(&$cookie_data) {
// "Encrypt" data with ROT 13.
foreach ($cookie_data as &$cookie) {
$cookie['value'] = str_rot13($cookie['value']);
}
}