summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-02-02 01:51:54 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-02-02 01:51:54 +0000
commitcebc8843314bd626268ee4fcdc21a1af6e9a4008 (patch)
treedab6188d1a80b20d8b4565463f4fdc4de69cc0c6 /modules/user/user.module
parent635cf5eb6df3ba4028e55b2df91f5e1ba3832758 (diff)
downloadbrdo-cebc8843314bd626268ee4fcdc21a1af6e9a4008.tar.gz
brdo-cebc8843314bd626268ee4fcdc21a1af6e9a4008.tar.bz2
- #44133: User login block not fully themed
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index ffdebec97..8c3173c73 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -528,13 +528,14 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
$form['name'] = array('#type' => 'textfield', '#title' => t('Username'), '#maxlength' => 64, '#size' => 15);
$form['pass'] = array('#type' => 'password', '#title' => t('Password'), '#maxlength' => 64, '#size' => 15);
$form['submit'] = array('#type' => 'submit', '#value' => t('Log in'));
- $output .= drupal_get_form('user_login_block', $form, 'user_login');
+
if (variable_get('user_register', 1)) {
$items[] = l(t('Create new account'), 'user/register', array('title' => t('Create a new user account.')));
}
$items[] = l(t('Request new password'), 'user/password', array('title' => t('Request new password via e-mail.')));
+ $form['links'] = array('#value' => theme('item_list', $items));
- $output .= theme('item_list', $items);
+ $output .= drupal_get_form('user_login_block', $form, 'user_login');
$block['subject'] = t('User login');
$block['content'] = $output;