function hook_is_amp_request_alter in Accelerated Mobile Pages (AMP) 7
Allow other modules to change the status of the AMP page. This allow you to turn AMP on/off for any node or page.
Parameters
bool $result: TRUE if its an AMP page, otherwise FALSE
1 invocation of hook_is_amp_request_alter()
- amp_is_amp_request in ./
amp.module - Determines whether a request should return AMP HTML.
File
- ./
amp.api.php, line 20 - Documents hooks provided by this module.
Code
function hook_is_amp_request_alter(&$result) {
}