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:

  1. if ($redirect) {
  2. include_spip('inc/headers');
  3. redirige_par_entete($redirect);
  4. } else {
  5. return array($id_auteur,'');
  6. }


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

Translations : English, français