Return to Snippet

Revision: 7112
at July 7, 2008 10:05 by shrop


Initial Code
<?php
global $user;
if (in_array('Moderator',$user->roles)) {
  return TRUE;
} 
else {
  return FALSE;
}
?>

Initial URL
http://www.packtpub.com/drupal-5-themes/book

Initial Description
From Drupal 5 Themes book.

Initial Title
Drupal Block Visibility: Check Role

Initial Tags
drupal

Initial Language
PHP