advanced code snippet search
focal55 on 08/04/11
drupal user 6 roles
08/04/11 03:16pm
<?php global $user; // Check to see if $user has the administrator role. if (in_array('administrator', array_values($user->roles))) { // Do something. }?>
Report this snippet Tweet
Comment:
You need to login to post a comment.