Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. <?php
  2. global $user;
  3. // Check to see if $user has a specific role.
  4. if (in_array('author', $user->roles)) {
  5. print t('<h5 class="author-role">Staff</h5>');
  6. }
  7. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement