function esi__get_user_contexts in ESI: Edge Side Includes 7.3
Get the ESI contexts for a single user.
1 call to esi__get_user_contexts()
- esi__get_cookie_data in ./
esi.module - Get all the relevant cookie data for an account.
File
- ./
esi.module, line 465 - Adds support for ESI (Edge-Side-Include) integration, allowing components\ to be delivered by ESI, with support for per-component cache times.
Code
function esi__get_user_contexts($account = NULL) {
// Invoke hook_esi_context().
$contexts = module_invoke_all('esi_context', $account);
drupal_alter('esi_context', $contexts, $account);
return $contexts;
}