ajout d'un pipeline a la fin du form, pour pouvoir gerer la redirection en autre
This commit is contained in:
parent
3057cd995b
commit
b285cd9eed
2 changed files with 28 additions and 3 deletions
|
@ -228,10 +228,26 @@ function formulaires_editer_compte_spip_traiter_dist($id_auteur = 'new', $redir
|
|||
include_spip('inc/auth');
|
||||
auth_loger($auteur);
|
||||
|
||||
$retour['redirect'] = "spip.php";
|
||||
|
||||
if (lire_config('comptespip/page_redirection_connexion')) {
|
||||
$retour = parametre_url(generer_url_public(lire_config('comptespip/page_redirection_connexion'),'',true),'id_auteur',intval($id_auteur));
|
||||
$retour['redirect'] = parametre_url(generer_url_public(lire_config('comptespip/page_redirection_connexion'),'',true),'id_auteur',intval($id_auteur));
|
||||
}
|
||||
return array('message_ok' => _T('form_forum_identifiant_mail'), 'redirect' => $retour);
|
||||
if ($redirect) {
|
||||
$retour['redirect'] = $redirect;
|
||||
}
|
||||
|
||||
$retour['message_ok'] = _T('form_forum_identifiant_mail');
|
||||
|
||||
$retour = pipeline(
|
||||
'comptespip_post_traiter',
|
||||
array(
|
||||
'args' => $set,
|
||||
'data' => $retour
|
||||
)
|
||||
);
|
||||
|
||||
return $retour;
|
||||
}
|
||||
|
||||
if ($update) {
|
||||
|
@ -251,6 +267,14 @@ function formulaires_editer_compte_spip_traiter_dist($id_auteur = 'new', $redir
|
|||
$retour['redirect'] = $redirect;
|
||||
}
|
||||
|
||||
$retour = pipeline(
|
||||
'comptespip_post_traiter',
|
||||
array(
|
||||
'args' => $set,
|
||||
'data' => $retour
|
||||
)
|
||||
);
|
||||
|
||||
return $retour;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<paquet
|
||||
prefix="comptespip"
|
||||
categorie="edition"
|
||||
version="1.0.1"
|
||||
version="1.0.2"
|
||||
etat="dev"
|
||||
compatibilite="[3.3.0-dev;3.3.*]"
|
||||
logo="prive/themes/spip/images/comptespip-xx.svg"
|
||||
|
@ -22,6 +22,7 @@
|
|||
<pipeline nom="comptespip_desinscription" action="" />
|
||||
<pipeline nom="comptespip_pre_inscription" action="" />
|
||||
<pipeline nom="comptespip_pre_login" action="" />
|
||||
<pipeline nom="comptespip_post_traiter" action="" />
|
||||
|
||||
|
||||
</paquet>
|
||||
|
|
Loading…
Add table
Reference in a new issue