You are here

function hook_esi_mode_alter in ESI: Edge Side Includes 7.3

Change the ESI render modes provided by hook_esi_mode().

See also

hook_esi_mode().

1 invocation of hook_esi_mode_alter()
esi_get_modes in ./esi.module
Get the possible modes of rendering an ESI tag.

File

./esi.api.inc, line 120
API documentation for hooks defined by the ESI module.

Code

function hook_esi_mode_alter(&$modes) {

  // Change the SSI render function to a replacement which changes "<!-- #" to
  // "<!--#".
  $modes['ssi']['render'] = 'mymodule_ssi_tag';
}