Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function login_bar() {
- global $user;
- //echo "user is " . $user->uid;
- if ($user->uid <= 0) {
- $form = drupal_get_form('horizontal_login_block');
- return render($form);
- } else {
- return '<div id="ep-logged-in" class="links inline">' . t('Welcome ') . ucwords($user->name) . '</div>';
- }
- }
Add Comment
Please, Sign In to add comment