Guest User

Untitled

a guest
Jan 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment