Login

Changents

Project Details
Changents.com home page
Launch Date: 
June 2008
 

Display a Drupal login form anywhere with PHP, including in page content

Update: I gave slightly incorrect code, I'm pretty sure swapping out 'user_register' to put in 'user_login' will work just fine:

dan hak 3:08
whats the code for the login block

benjamin melançon 3:09

<?php
global $user;
if (!
$user->uid) {
?>

<div class="user-register">

<?php
print drupal_get_form('user_register');
?>

</div>