I want to show the logout link at top right of all pages, just like when we login as admin we could see logout link at the top right corner of the all pages, but problem is when I login as normal user [non admin] the logout link showing some where in the bottom, but I want to show it in the top right corner of all the pages please help me if anyone know!!
Yo have to create a block to list all page. Then use code.
if (!in_array("administrator", $roles)) {
use logout link here(user/logout)...........
}
First you have to check whether the user is anonymous.
-
-
You have to create block in the top-region and put this code. – user49951 Dec 7 '15 at 7:49