daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function login_bar() {
  2.     global $user;
  3.     //echo "user is " . $user->uid;
  4.     if ($user->uid  <= 0) {
  5.         $form = drupal_get_form('horizontal_login_block');
  6.         return render($form);
  7.     } else {
  8.         return '<div id="ep-logged-in" class="links inline">' . t('Welcome ') . ucwords($user->name) . '</div>';
  9.     }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top