how do I call this function to my html page I where I want the forms to appear?
<?php
function login_bar() {
global $user;
if ($user->uid == 0 ) {
$form = drupal_get_form('horizontal_login_block');
return render($form);
} else {
// you can also integrate other module such as private message to show unread / read messages here
return '<div id="loginbar"><p>' . t('Welcome back ') . ucwords($user->name) . '<p></div>';
}
}
?>