accueil_encours

This pipeline is used to add content to the centre of the home page in the private zone, e.g. to display new articles proposed for publication.

$res = pipeline('accueil_encours', $res);

This pipeline accepts a text string as argument and returns the supplemented text as output.

Example

The "breves" plugin, if it existed, might use this pipeline to add the list of recently proposed news items:

function breves_accueil_encours($texte){
	$texte .= afficher_objets('breve', afficher_plus(generer_url_ecrire('breves')) . _T('info_breves_valider'), array("FROM" => 'spip_breves', 'WHERE' => "statut='prepa' OR statut='prop'", 'ORDER BY' => "date_heure DESC"), true);	
	return $texte;
}

Author Mark Baber Published : Updated : 12/03/23

Translations : English, français