You are here

function esi_component_load in ESI: Edge Side Includes 7.3

Menu-wildcard loader for %esi_component.

File

./esi.module, line 242
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_component_load($component) {
  $components = esi_get_components();

  // Do not return FALSE: even if the requested component is not valid, allow
  // the menu handler to return control to esi_handle_component() in order to
  // return a custom ESI 404.  Having an entire theme Drupal 404 page embedded
  // within another Drupal page would not be desirable.
  return array_key_exists($component, $components) ? $components[$component] : NULL;
}