Commit Graph

588 Commits (534c6d4f7c65e40f81a02b5b05a33263cffd9474)

Author SHA1 Message Date
Dries Buytaert 9e7ecfa1f9 - Patch #48313 by Tobias: added missing t() function. 2006-02-23 12:52:02 +00:00
Dries Buytaert 3603fe1bd8 - Patch #49912: www.drupal.org -> drupal.org. (Today's critical bugfix #5.) 2006-02-21 18:46:54 +00:00
Dries Buytaert 5298688d8d - Patch #24398: make password reset work in case someone does prefetching. (Today's critical bugfix #4.)) 2006-02-21 16:00:55 +00:00
Dries Buytaert 8b3bf4d005 - Patch #50106 by webchick: code clean-up. 2006-02-21 14:45:46 +00:00
Dries Buytaert eeae26b227 - Patch #49132 by Tobias and Zen: fixed problem with profile fields being mangled. 2006-02-16 15:29:46 +00:00
Dries Buytaert 9dacf2f8d7 - Patch #47785 by chx: login block not w3 compatible (two id attributes) 2006-02-15 21:03:20 +00:00
Dries Buytaert 21eb666a9b - Patch #11031 by Zen:
* Makes the user login and password fields in the login _block_ required.
    * Uses just if ($form['name']) rather than if (isset($form['name']) && $form['name']). AFAIK, using both is unnecessary with the form API.
    * Changes maxlength for usernames to 60 which is the (rather odd) database value. The maxlength fields at present don't accomodate affiliate logins with extra long usernames/domains, but I've left that issue alone for now.
    * Removes all instances of maxlength for password. They were a)not being applied with any degree of consistency, and b)unnecessary as only the hash is stored.
    * Corrects an e-mail address maxlength from 55 to 64.
    * unset() accepts more than one variable.
2006-02-10 05:46:39 +00:00
Dries Buytaert 583d5a4ee9 - Patch #48622 by adrian: remove drupal_goto from _submit functions. 2006-02-10 05:25:57 +00:00
Dries Buytaert c6328111a3 - Patch #48242 by markus: add/edit form in user access rules is broken. 2006-02-09 08:20:49 +00:00
Dries Buytaert b28f48dc48 - Patch #44290 by Steve Dondley: fixed problem with user picture getting deleted after editing user account. 2006-02-09 07:43:43 +00:00
Steven Wittens cebc884331 - #44133: User login block not fully themed 2006-02-02 01:51:54 +00:00
Dries Buytaert 1db149b7d5 - Patch #46126 by killes: properly initialize the user roles array. 2006-02-01 15:43:11 +00:00
Dries Buytaert ece2aab4fd - Patch #47344 by gordon: fixed problem with anonymous user role not being properly initialized. 2006-02-01 14:08:26 +00:00
Dries Buytaert 52c0c18cad - Patch #46622 by Neil: more forgiving hook_user('view'). 2006-01-29 08:01:55 +00:00
Dries Buytaert 15ff8c8e32 - Patch #46827 by wulff: fixed incorrect links. 2006-01-29 07:50:45 +00:00
Dries Buytaert c046333610 - Patch #35499 by samo, m3avrck, et al: one-time login link does not provide adequate feedback to user errors. 2006-01-27 18:49:48 +00:00
Dries Buytaert d958fad0d6 - Patch #40200 by Ax, Drewish, Zen et al: user_view() isn't merging view items correctly + CSS cleanup + form handling cleanup. 2006-01-26 13:43:04 +00:00
Dries Buytaert 6996292d52 - Patch #46262 by Neil: load the anonymous user on logout. 2006-01-26 08:52:24 +00:00
Dries Buytaert 794b53e195 - Patch #46137 by drumm/moshe: load anonymous user if authentication failed. 2006-01-26 08:51:10 +00:00
Dries Buytaert 017cbf5e2b - Patch #46388 by m3avrck: removed some dead code. Yay. 2006-01-26 08:43:28 +00:00
Dries Buytaert d20ed7e3be - Patch #45665 by wtanaka/moshe: removed dead code! w00t! 2006-01-24 18:32:20 +00:00
Dries Buytaert bc9cbefa30 - Patch #45729 by markus, jvandyk, moshe: fixed problem with permission checking. 2006-01-23 08:06:43 +00:00
Dries Buytaert 25f13a64c4 - Patch #45843 by markus: roles are no longer required. 2006-01-22 07:23:58 +00:00
Dries Buytaert 4da4f4c1af - Patch #44379 by Moshe: code improvements: always grant the 'authenticated user' role to authenticated users. Fixed glitch with udpate path. 2006-01-21 08:28:55 +00:00
Dries Buytaert 0ff0c4beaa - Patch #42137 by Richard: deleting non existent user blocks the whole drupal site. 2006-01-20 09:37:00 +00:00
Dries Buytaert 8c02d4ec93 - Patch #45530 by Morbus: filter_form shouldn't default to #weight 0
When a form element doesn't specify a #weight, it is assumed internally as #weight 0. However, to ensure that our form elements display visually *as they were defined in the array* we, in form_builder, count the number of elements, divide by 1000, and set that as the weight:

# Assign a decimal placeholder weight to preserve original array order
if (!isset($form[$key]['#weight'])) {
  $form[$key]['#weight'] = $count/1000;
}

The above code will set the #weights of elements that have not defined a weight to something like 0 (first element in array definition), 0.001, 0.002, and so on. However, anytime a form element *explicitly* defines a #weight of 0, that #weight is kept at exactly 0, which would cause that form element to appear BEFORE the elements that didn't have a #weight defined (and thus received a #weight such as 0.002).

Consider the following pseudo example:

$form['game_title'] = array(
    '#type' => 'textfield',
    ...
    );
$form['game_description'] = array(
    '#type' => 'textarea',
    ...
    );
$form['game_format'] = filter_form(variable_get('game_format', NULL));
return $form;

Here, we're not definiing weights on our two textfields. We then add an filter_form. The second parameter of the filter_form is $weight, which defaults to 0. After this $form hits form_builder, we have weights 0 (game_title), 0.001 (game_description), and 0 (filter_form) respectively. This is then sorted by weight, which causes filter_form (the third element in the array) to appear BEFORE game_description (0 is lighter than 0.001).

The short lesson is: explicitly defining #weight 0 for a form element is probably a bad idea. This patch changes the default #weight of filter_form to NULL, instead of 0, and also removes any other explicit setting of #weight to 0 in core.
2006-01-20 09:04:34 +00:00
Dries Buytaert 4a7abb95b6 - Patch #45312 by Robin and Zen: made theme_user_list() more like theme_item_list(), made it robust for empty lists. 2006-01-20 08:58:09 +00:00
Dries Buytaert 8b5175a983 - Patch #44754 by Zen: fixed "Who's new" block inaccuracy. 2006-01-17 09:04:20 +00:00
Dries Buytaert f649b42d9c - Patch #44767 by jvandyk: small (code) improvements 2006-01-15 16:57:56 +00:00
Dries Buytaert 776e6501cd - Patch #44210 by DriesK: made it possible to edit blocked users. 2006-01-13 19:02:38 +00:00
Dries Buytaert 403c1c0404 - Added trailing point. 2006-01-13 14:54:51 +00:00
Dries Buytaert 11b9259db0 - Patch #44507 by DriesK: consistency: email -> e-mail. 2006-01-13 07:33:13 +00:00
Dries Buytaert cccca3b17e - Patch #44261 by Kobus/Zen: drupal -> Drupal. 2006-01-12 19:29:36 +00:00
Dries Buytaert e136a247c3 - Patch #40401 by driesk: fixed incorrect form conversion. 2006-01-12 19:15:31 +00:00
Dries Buytaert 3607a2b059 - Patch #44373 by m3avrck: improved generated HTML/CSS. 2006-01-12 09:58:49 +00:00
Dries Buytaert 79cdc915ec - Modified patch #44156 by Zen: '%s' -> %d. 2006-01-10 20:11:46 +00:00
Dries Buytaert afb923a00a - Patch #36716 by m3vrick: made deleting user accounts work. 2006-01-09 19:18:46 +00:00
Dries Buytaert 7c862e924a - Patch #43668 by chx: fixed warning. 2006-01-09 18:27:26 +00:00
Dries Buytaert 6f0bd9499b - Patch #43668 by chx: fixed problem with changing usernames. 2006-01-09 14:14:39 +00:00
Dries Buytaert fb393415bb - Patch #43833 by killes: give the first user a default role. 2006-01-08 16:32:08 +00:00
Dries Buytaert 9d1d40e609 - Patch #39639 by Richard: 'users' appearing twice in menu. 2006-01-06 07:42:31 +00:00
Dries Buytaert db1e1b5388 - Patch #42541 by merlinofchaos: critical bug fix: public user registrations not always working. 2006-01-05 10:55:51 +00:00
Dries Buytaert 749284633f - Patch #42057 by hunmonk and chx: made saving user accounts work again. 2006-01-02 08:35:59 +00:00
Dries Buytaert 89e89a3b9b - Patch 42115 by Cvbge/ m3avrck: improved performance of session loading. 2005-12-31 11:50:47 +00:00
Dries Buytaert ea2d791095 - Patch 41169 by Chris: got rid of expensvie object 2 array casts. 2005-12-31 10:48:56 +00:00
Dries Buytaert d21dda89b3 - Patch #41305 by chx: user edit form submit model rewrite. 2005-12-19 10:02:33 +00:00
Dries Buytaert 63ece6f957 - Patch #29060 by tostinne/ax: added tabindex to user login page. 2005-12-11 12:53:09 +00:00
Dries Buytaert 30450039f9 - Patch #40583 by canen: make user_autocomplete function work with PostgreSQL. 2005-12-10 08:08:44 +00:00
Dries Buytaert c54234d71a - Patch #40341 by Neil: fixed problems with database schema versions.
- When user #1 creates an account (we can assume this happens only once), system.module's schema version is set to the latest availiable.
  - system_get_files_database() now includes a 'schema_version' child of each file object.
  - That new information is re-saved when Drupal re-populates the system table.
  - An array of newly-enabled modules is built, module_list() is reloaded, and the schema versions of each newly-enabled module are set to the most recent availiable. If the schema version is already set (presumably from a previous installation) it is not changed.
2005-12-08 08:40:10 +00:00
Dries Buytaert 9ccb6d7a80 - Patch #26641 by Uwe: tabs disappear in user.module settings after saving a role. 2005-12-06 12:36:37 +00:00