Return to Snippet

Revision: 7111
at July 7, 2008 10:01 by shrop


Initial Code
<?php
global $user;
if ($user->uid == 1){
  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 UID

Initial Tags
drupal

Initial Language
PHP