2008
Nov
06
This way you can print blocks, menus, links, etc. based on role:
<?php global $user; if (in_array('rolename', $user->roles)) : ?> <p>print stuff here</p> <?php endif ?> |
This way you can print blocks, menus, links, etc. based on role:
<?php global $user; if (in_array('rolename', $user->roles)) : ?> <p>print stuff here</p> <?php endif ?> |
Add New Comment
Viewing 1 Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment