You are here

function hook_amp_js_list_alter in Accelerated Mobile Pages (AMP) 7

Modify the list of AMP JS components.

Parameters

array $js_list:

1 invocation of hook_amp_js_list_alter()
_amp_get_amp_js_list in ./amp.module
Return info on AMP JS components returned from the AMP library.

File

./amp.api.php, line 53
Documents hooks provided by this module.

Code

function hook_amp_js_list_alter($js_list) {
  $js_list['amp-some-component'] = 'https://cdn.ampproject.org/v0/amp-some-component-0.1.js';
}