Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2006 at 18:47 UTC
Updated:
1 Mar 2006 at 21:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
dries commentedWe are currently generating this:
<form action="/node?destination=node" method="post" id="user_login_block" id="user-login-form">We probably want to keep "user-login-form".
The patch is somewhat strange because the other drupal_get_form()s use underscores not dashes. However, our CSS coding conventions require dashes, not underscores. Argh.
Comment #2
fax8 commentedDries... probably I didn't understood... but the patch do exactly
what you asked: remove user_login_block and keep user-login-form
But I can be wrong :-)
Comment #3
dries commentedYes, but I'm not sure it is safe/consistent to use dashes for the first paramater of drupal_get_form(). We might have to use underscores.
Comment #4
fax8 commentedwhat about changing
to
and leave underscores on drupal_get_form ?
themes that use #user-login-form will need to change .user-login-form
Comment #5
moshe weitzman commentedthe last comment was implemented in a patch for http://drupal.org/node/11031
Comment #6
fax8 commentedthere is no patch for this issue on http://drupal.org/node/11031
Comment #7
moshe weitzman commentedsorry, i lost my patch. #4 looks sane to me.
Comment #8
fax8 commentedpatch for #4. Also changes misc/drupal.css to use .user-login-form instead of #user-login-form .
Note that with this patch every theme that override #user-login-form in their css will need to be
changed to use .user-login-form .
Comment #9
moshe weitzman commentedComment #10
fax8 commentedMarking http://drupal.org/node/48929 duplicate of this issue.
Comment #11
chx commentedForm API now tolerates the #id you set if you do not set it directly. See patch.
Comment #12
fax8 commentedperfect! this is ok for me. good work.
Comment #13
fax8 commentedAlso note that this doesn't break any theme.
Comment #14
dries commentedCommitted to HEAD. Thanks.
Comment #15
(not verified) commented