editer_objet actions

Actions which write data have a special peculiarity. Called by forms that write data for SPIP objects (in the prive/formulaires/ directory) from the ecrire/inc/editer.php file, they do not receive redirection instructions and must return, in such cases, a data pair of "identifier", "error". The (CVT) form process itself manages the subsequent redirection.

For this reason, the action/editer_xx.php files, where xx is the object type (in the singular), may return an array:

if ($redirect) {
    include_spip('inc/headers');
    redirige_par_entete($redirect);
} else {
    return array($id_auteur,'');
}

Author Mark Baber Published : Updated : 01/06/10

Translations : English, français