Skip to content

Instantly share code, notes, and snippets.

Created October 9, 2013 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6899027 to your computer and use it in GitHub Desktop.
Save anonymous/6899027 to your computer and use it in GitHub Desktop.
$GLOBALS['spip_pipeline']['arbo_creer_chaine_url'] .= "||googlenews_arbo_creer_chaine_url";
function googlenews_arbo_creer_chaine_url($x) {
$objet = $x['objet'];
if ($objet['type'] == 'article') {
$x['data'] .= "," . str_pad($objet['id_objet'], 4, "0", STR_PAD_LEFT);
}
return $x;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment