You are here

function hook_googlenews_item_alter in Google News sitemap 7

Modify the final values for the sitemap entry for a specific node.

Parameters

array $item: The finished sitemap entry for this node. Allows for a final modification prior to output.

object $node: The loaded node object being processed for this news entry. Changes should not be made to this object.

1 invocation of hook_googlenews_item_alter()
googlenews_getgooglenews in ./googlenews.sitemap.inc
Generate the news feed.

File

./googlenews.api.php, line 61
Hooks provided by the Google News sitemap module.

Code

function hook_googlenews_item_alter(&$item, $node) {

  // Add the AMP suffix to all URLs.
  $item['url'] .= '?amp';
}