You are here

function amp_page_delivery_callback_alter in Accelerated Mobile Pages (AMP) 7

Implements hook_page_delivery_callback_alter().

Allows our custom page callback to be used

File

./amp.module, line 1533

Code

function amp_page_delivery_callback_alter(&$deliver_callback) {
  if (amp_is_amp_request()) {
    $deliver_callback = 'amp_deliver_html_page';
  }
}