Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $user;
- // Check to see if $user has a specific role.
- if (in_array('author', $user->roles)) {
- print t('<h5 class="author-role">Staff</h5>');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement