0

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!!

0

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.

  • can you tell me where to keep this piece of code? – rose Dec 7 '15 at 6:33
  • You have to create block in the top-region and put this code. – user49951 Dec 7 '15 at 7:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.