parent
fbcc785e5b
commit
07810c5a2e
|
@ -2,12 +2,24 @@
|
|||
|
||||
function _edit_user_callback() {
|
||||
unset($_REQUEST['destination']);
|
||||
return drupal_goto("https://compte-citoyen.montpellier-agglo.com/fr/mon-compte");
|
||||
return drupal_goto("https://connexion.montpellier-agglo.com/accounts");
|
||||
}
|
||||
|
||||
function _create_user_callback() {
|
||||
unset($_REQUEST['destination']);
|
||||
return drupal_goto("https://compte-citoyen.montpellier-agglo.com/accounts/register");
|
||||
return drupal_goto("https://connexion.montpellier-agglo.com/accounts/register");
|
||||
}
|
||||
|
||||
/* user_login hook) */
|
||||
function mon_agglo_comptecitoyen_user_login(&$edit, $account) {
|
||||
$edit['redirect'] = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Show /manual_login page
|
||||
*/
|
||||
function mon_agglo_comptecitoyen_login_page() {
|
||||
return drupal_get_form('user_login');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -21,3 +33,18 @@ function mon_agglo_comptecitoyen_menu_alter(&$items) {
|
|||
$items['admin/people/create']['page callback'] = '_create_user_callback';
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_menu().
|
||||
*/
|
||||
function mon_agglo_comptecitoyen_menu() {
|
||||
$items = array();
|
||||
|
||||
$items['manual_login'] = array(
|
||||
'title' => 'User account',
|
||||
'page callback' => 'mon_agglo_comptecitoyen_login_page',
|
||||
'access callback' => TRUE,
|
||||
);
|
||||
|
||||
return $items;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue