Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • Block settings are easy, but I have to use tpl.php in this case. Where exactly do I specify here that it should work for admin only? Commented Feb 13, 2015 at 18:30
  • just put in the name of the role you want, so in this case 'admin' (I think it's shortened, might be "administrator") Commented Feb 13, 2015 at 18:32
  • Please keep in mind that I'm really not good with php. :) I have edited the question, is that it? Commented Feb 13, 2015 at 18:37
  • look at my edit :) in_array($needle, $haystack) Commented Feb 13, 2015 at 18:52
  • OK, tried it, but it didn't output anything. You can see the whole code at the bottom of the question. I have tried both admin and administrator. Commented Feb 13, 2015 at 18:58