function hook_esi_panels_url_alter in ESI: Edge Side Includes 7.3
Alter the URL used in an ESI include tag.
Parameters
string $url: The URL used in the ESI include tag.
array $context: Associative array containing the pane to be rendered ($pane) and its display ($display). Not editable, for reference purposes only.
1 invocation of hook_esi_panels_url_alter()
- esi_panels_url in modules/
esi_panels/ esi_panels.module - Build the URL to use for this ESI component.
File
- modules/
esi_panels/ esi_panels.api.inc, line 16 - API documentation for hooks defined by ESI Panels.
Code
function hook_esi_panels_url_alter(&$url, $context) {
// Add the timestamp to the URL.
$url .= '/' . time();
}