SPIP can send warning messages for various events that may be more or less considered as being urgent:
- A database crash
- A plugin crash
- A plugin activation error
- A notification that there is a message in the mailbox
This pipeline, called in ecrire/inc/commencer_page.php by the alertes_auteur() function, is used to populate the table containing such warnings.
$alertes = pipeline('alertes_auteur', array(
'args' => array(
'id_auteur' => $id_auteur,
'exec' => _request('exec'),
),
'data' => $alertes
)
);
It receives an array as a parameter.
-
data: contains an array of the various warnings, -
argscontains an array with:-
id_auteurbeing the currently logged-in author, -
execis the name of the displayed page.
-