how to use register form in page in drupal 7


Register code use for page
if(user_is_anonymous()) {

print l(t(‘regesiter’), ‘user/register’);

}

login code for templete page

Logged in as <?php print l($user->name,’user/’.$user->uid); ?></div>

<?php if ($user->uid == 0){
print l(t(‘login’), ‘user’);

}
else{
print l(t(‘log out’), ‘user/logout’);

} ?>

Advertisements

One thought on “how to use register form in page in drupal 7

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s