user_uid_optional_load

Definition

user_uid_optional_load($arg)
modules/user/user.module, line 1123

Code

<?php
function user_uid_optional_load($arg) {
  return user_load(isset($arg) ? $arg : $GLOBALS['user']->uid);
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.