This pipeline is used to add statistical data about the editorial objects into the side navigation panel on the home page.
$res = pipeline('accueil_informations', $res);
It accepts text as a parameter that it may complete and return as output.
This pipeline is used to add statistical data about the editorial objects into the side navigation panel on the home page.
$res = pipeline('accueil_informations', $res);
It accepts text as a parameter that it may complete and return as output.
The "breves" plugin, if it existed, might use this pipeline to add the number of news items awaiting validation for publication:
function breves_accueil_informations($texte){
include_spip('base/abstract_sql');
$q = sql_select("COUNT(*) AS cnt, statut", 'spip_breves', '', 'statut', '','', "COUNT(*)<>0");
// processes operating on the text depending on the resulting output
// ...
return $texte;
}
Author Published : 18/02/10 Updated : 12/03/23
Translations : English, français