if($GLOBALS['user']->uid==0 && current_path()!='user/login') {
header("Location: " . $GLOBALS['base_url'] . '/user/login?destination=' . current_path());
}
lundi 7 octobre 2013
[Drupal7] Redirect all anonymous users to login page
Without installing any module, add this three lines to your html.tpl.php :
Libellés :
anonymous
,
drupal 7
,
login page
,
redirection
,
user
Inscription à :
Publier les commentaires
(
Atom
)
Aucun commentaire :
Enregistrer un commentaire