Commit Graph

3189 Commits (ca9f0fab45823c49947b218587b9c9ef92aff60c)

Author SHA1 Message Date
Dries Buytaert 14ae238973 - Patch #45320 by Zen: improved usability of off-line mode. 2006-01-22 07:51:06 +00:00
Dries Buytaert 30acded344 - Patch #45697 by fgm: removed some useless global. 2006-01-22 07:43:19 +00:00
Dries Buytaert 542e6e0d22 - Patch #33102 by Kobus et al: show dates properly. 2006-01-22 07:37:17 +00:00
Dries Buytaert 4267ab5ea9 - Patch #45706 by markus: keeping up with CSS improvements. 2006-01-22 07:32:55 +00:00
Dries Buytaert b9240f63d7 - Patch #45684 by wtanaka: added missing ''s 2006-01-22 07:31:38 +00:00
Dries Buytaert b6b98bb60d - Patch #44101 by Cvbge: deleting a comment creates incorrect entry in node_comment_statistics. 2006-01-22 07:26:33 +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
Steven Wittens 7914ad0f3f - #40515: Ensure UTF-8 character set on the database side (and include upgrade path for incorrectly set up databases) 2006-01-21 01:42:52 +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 4da1540a9f - Patch #45380 by Neil: usability improvement: disable anonymous commenting options when anonymous people can't comment. 2006-01-20 09:33:03 +00:00
Dries Buytaert 9c4d4fe7b2 - Patch #45228 and patch #45025 by m3avrck and Uwe: aggregator module HTML/CSS cleanups. 2006-01-20 09:09:18 +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 10d7f7731b - Patch #45281 by chx: made categories with forum topics work again. 2006-01-19 17:55:54 +00:00
Dries Buytaert 4c1522e962 - Patch #45336 by Ber: bugfix: removed obsolete check_plain() check causing & problems. 2006-01-19 09:26:15 +00:00
Dries Buytaert f828c0ade2 - Patch #39430 by Jaza and Richard: code improvements: improved separation between UI and logic. 2006-01-19 08:58:00 +00:00
Dries Buytaert e84a98a22b - Patch #45349 by Morbus Iff: input filters aren't sorting correctly infForms API. 2006-01-19 08:54:41 +00:00
Steven Wittens ecd26ac8ae - #42277: Make node search indexing more robust against bad nodes and timeouts. 2006-01-18 21:31:40 +00:00
Dries Buytaert 52507806eb - Patch #45301 by Morbus: corrected the weight of form item titles of nodes. 2006-01-18 19:29:17 +00:00
Dries Buytaert 2220c03633 - Patch #45206 by markus: attempt at making the node filters somewhat translatable. 2006-01-18 19:09:46 +00:00
Dries Buytaert 47dd0142e6 - Patch #43325 by chx/drumm/merlinofchaos: critical bugfix: made editing comments work. 2006-01-18 15:09:39 +00:00
Dries Buytaert 46913a7efd - Patch #45259 by chx/drumm: cast to object required. 2006-01-18 14:30:42 +00:00
Dries Buytaert 186ebd18da - Patch #42072 by m3avrck: more improvements to the node revesion overview screen. 2006-01-17 21:19:43 +00:00
Dries Buytaert baaf319c59 - Patch #42072 by m3avrck: improved the revision overview screen. 2006-01-17 19:26:49 +00:00
Dries Buytaert df631e3c7f - Patch #45041 by markus: rand() -> mt_rand() + removed deprecated comments. 2006-01-17 18:32:33 +00:00
Dries Buytaert cb45cf58fb - Patch #40755 by wtanaka: make the comment block themable. 2006-01-17 18:02:23 +00:00
Dries Buytaert 51d2ac2b9e - Critical feature #40670: made the form array accessible. 2006-01-17 17:42:29 +00:00
Dries Buytaert e145866243 - Patch #44136 by riccardoR: can't enable more than one language. 2006-01-17 17:35:47 +00:00
Dries Buytaert a50eb34bda - Patch #44381 by gerhard: improved consistency of API. Always pass an array. 2006-01-17 09:23:38 +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 ae84e469b0 - Patch #39329 by markus: order sources in aggregator. 2006-01-15 17:03:34 +00:00
Dries Buytaert f649b42d9c - Patch #44767 by jvandyk: small (code) improvements 2006-01-15 16:57:56 +00:00
Steven Wittens 2e9bbda791 - #44772: {} -> [] (in anticipation of PHP de-deprecation) 2006-01-15 07:14:14 +00:00
Dries Buytaert 88cdbf9185 - Patch #39135 by Zen: various contact form improvements/fixes.
+ Conversion to _validate + _submit model..
  + Split replaced by explode - faster
  + Fixed typos: Recipient
  + Fixed weight defaulting to -10
  + Popped mail subject formatting into a t()
  + Popped '--' formatting into a t()
  + Does a lot of documentation fixing/rewriting.
  + Renamed contact_user_mail form functions to contact_mail_user for consistency.
  + ...
2006-01-14 10:33:22 +00:00
Dries Buytaert baa5c2ff89 - Extended the form description for clarity. 2006-01-14 09:51:57 +00:00
Dries Buytaert 84a5ff4052 - Patch #44544 by Richard: made the help text slightly more accurate. 2006-01-14 09:45:44 +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 155aff37d7 - Patch #44490 by darius: don't show blocked users on the profile pages. 2006-01-13 15:54:05 +00:00
Dries Buytaert 403c1c0404 - Added trailing point. 2006-01-13 14:54:51 +00:00
Dries Buytaert 07c2ef3248 - Patch #44499 by Neil: missing quotes. 2006-01-13 07:34:46 +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 bc149ab22b - Patch #33128 by Morbus: %num -> %count to make format_plural() work. 2006-01-12 16:22:46 +00:00
Dries Buytaert 6e45b2f9c3 - Patch #42029 by drumm: correct post times for administrators posting using a blogapi client. 2006-01-12 10:02:45 +00:00
Dries Buytaert 47ae354ef5 - Patch #44163 by m3avrck: fixed typo in permission and fixed incorrect description. 2006-01-12 10:01:15 +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 67778c896e - Patch #39672 by Ber: made the help text opion work for free tagging terms. 2006-01-10 19:56:19 +00:00