Commit Graph

201 Commits (745222200e0670f55c6d695e467558171b7bb5d8)

Author SHA1 Message Date
Dries Buytaert 269856e5e7 - Patch #85166 by jjeff: added an extra div to enable Javascript-ify checkboxes. 2006-09-26 14:20:20 +00:00
Neil Drumm 88d14981f2 #84111 by AjK. Be sure to get the right multistep form. 2006-09-23 07:50:16 +00:00
Dries Buytaert 35c33e3cf5 - Patch #83222 by edkwh: more theme('placeholder') clean-up. Good catch. 2006-09-09 08:25:24 +00:00
Neil Drumm 77354a34e5 #49443 by Ralf Stamm and webchick. Make default date format consistent. 2006-09-06 06:53:39 +00:00
Dries Buytaert 583701741a - Patch #80470 by Eaton et al: better handling of programmatic submission. 2006-08-31 14:59:28 +00:00
Neil Drumm e3bf577eb0 #80574 by Steven and chx. Fix file uploads. 2006-08-31 07:30:49 +00:00
Dries Buytaert 5dc27bcb93 - Patch #80860 by eaton et al: use form API multistep for poll.module 2006-08-30 18:50:35 +00:00
Neil Drumm 4f97a2a993 #81193 by chx. Pass $edit to #process functions. 2006-08-30 07:50:10 +00:00
Neil Drumm bceaf8f0da #80574 Eaton and chx. Replace $_POST['edit'] with $_POST. 2006-08-29 09:12:03 +00:00
Dries Buytaert f8534504b3 - Patch #80895 by webchick et al: make it easier to disable form elements. 2006-08-27 12:54:01 +00:00
Dries Buytaert 234d5bef20 - Patch #38454 by drumm, jaza, webchick, timnc et al: add field pre- and suffixes to textfields. 2006-08-26 09:56:17 +00:00
Neil Drumm 9a5cd170dc #79937 by Eaton and chx. Provide a convenient framework for multi-step forms. 2006-08-25 08:15:24 +00:00
Neil Drumm f5d7375c15 #80471 by Eaton and chx. Fix handling of default values in programmatically submitted forms. 2006-08-25 07:58:48 +00:00
Neil Drumm 32e22f1f9a #79577 by chx. Cleanup- remove $posted and only set $edit if needed. 2006-08-23 05:04:05 +00:00
Dries Buytaert 71e191d925 - Patch 79614 by justin: make redirection work. 2006-08-22 19:12:05 +00:00
Dries Buytaert c4f1e4ba13 - Patch #76444 by chx, moshe, eaton, angie et al: make it possible to control access to form elements. 2006-08-22 11:13:04 +00:00
Neil Drumm e48ec09993 #79511 by timcn. Clean up some notices. 2006-08-21 06:25:49 +00:00
Dries Buytaert 7de41539df - Patch #77919 by chx, eaton, moshe, et al: enable programmaticaly submitted forms via the pull model. 2006-08-18 18:58:47 +00:00
Steven Wittens 81938a3cdc #76802: Introduce placeholder magic into t()
See: http://drupal.org/node/64279#t-placeholders
2006-08-18 12:17:00 +00:00
Dries Buytaert ce85b7c7f8 - Patch #74326 by Eaton, Royboy, chx, et al: building $node->body with arrays like FAPI for viewing.
Once again, we're paving the path for CCK in core ... :)
2006-08-10 15:42:33 +00:00
Neil Drumm cd430165d7 #73884 by RobRoy, various code cleanup. 2006-08-05 00:26:36 +00:00
Dries Buytaert 8c1560c756 - Forgot this with last commit. 2006-08-03 14:08:30 +00:00
Dries Buytaert 69b484f634 - Patch #74660 by Eaton: make drupal_get_form() more granular and improved the code comments. 2006-07-22 19:26:58 +00:00
Neil Drumm 7645a1f468 #73609 by jvandyk, add a comment explaining token unsetting. 2006-07-19 07:25:49 +00:00
Dries Buytaert e93f8be871 - Patch #72204 by nedjo: upper-cased all TRUE/FALSE/NULL constants. 2006-07-05 11:45:51 +00:00
Neil Drumm c21db64ae8 #69403 by webchick, adoid overriding #theme set by hook_form_alter(). 2006-07-04 08:52:55 +00:00
Neil Drumm d048681f03 #63990 by Heine and chx, allow commenting on nodes containing forms 2006-07-02 20:24:17 +00:00
Neil Drumm fcee5e4f89 #34434 by beginner, fix an incorrect array key check. 2006-07-02 20:10:20 +00:00
Neil Drumm 451f44c4f0 #71772 by Bart Jansens, fix various php warnings 2006-07-02 20:06:31 +00:00
Neil Drumm 7ced1e694b #34434 by beginner, properly initialize a variable. 2006-06-23 08:31:23 +00:00
Neil Drumm 8c8af42c64 #62366 by malex, Steven, and fgm: XHTML error, duplicate ids on hidden form id element. 2006-05-23 03:18:55 +00:00
Neil Drumm 7aa1963aba #64583 by Jaza, Themed form element output of '0' does not get printed. 2006-05-23 02:16:58 +00:00
Dries Buytaert be7bb9be9b - Patch #63704 by chx: fixed the order of validation. (Needs more wide-spread testing before being backported to DRUPAL-4-7.) 2006-05-16 10:11:19 +00:00
Neil Drumm 58db2b27a4 #62829 by Jaza, Multi selects in hook_settings are broken 2006-05-16 01:55:57 +00:00
Dries Buytaert ee12ae6493 - Patch #63251 by sammys: added validation of dates. 2006-05-15 06:27:32 +00:00
Neil Drumm 9cff02e91b #61802 by Zen, Double spaced sentences clean up 2006-05-07 00:08:36 +00:00
Neil Drumm 133617cb13 #57834 by chx, Replace theme_weight with more appropriate process_weight 2006-05-04 09:57:14 +00:00
Neil Drumm 6411e09dc9 #56508 by chx (modified), Remove notices from form.inc and move theme_form_element from theme.inc to form.inc. 2006-05-02 09:26:33 +00:00
Neil Drumm 58db005b93 Forward port from 4.7
#60797, moved comment, patch by Zen
2006-04-30 00:40:57 +00:00
Neil Drumm 8e10f1d48c Forward port from 4.7
#60797, leftovers, patch from chx
2006-04-30 00:32:48 +00:00
Gerhard Killesreiter d04b659673 #60797, theme('taxonomy_term_select', $element) called, but output is ignored, patch by chx 2006-04-28 12:40:54 +00:00
Steven Wittens b538ba870b #60370: #theme callback on element broken 2006-04-26 18:21:07 +00:00
Steven Wittens 83e279a7b8 #58059: Fix bug with IE not sending form button values when pressing enter. 2006-04-26 18:12:24 +00:00
Gerhard Killesreiter 8d48ee17b9 #60338, better name for #form_submitted, patch by chx 2006-04-25 20:46:57 +00:00
Gerhard Killesreiter 83cd31cd76 #60267, user password get lost if editing user account, patch by Jaza 2006-04-25 20:44:00 +00:00
Gerhard Killesreiter 3300aa2d4e #59960, Can't store the value of submit, patch by Zen 2006-04-25 10:00:57 +00:00
Dries Buytaert 9e9e0e2c63 - Patch #60017 by praseodym: add id's to hidden form fiels. Useful for Javascript purposes. 2006-04-24 19:34:50 +00:00
Gerhard Killesreiter 8d4147637a #59526, password_confirm fields don't flag error when required and empty, patch by sammys 2006-04-22 08:24:55 +00:00
Gerhard Killesreiter 0d0a939ab1 #47544, Checkboxes, radios, and improper use of LABELs., patch by Zen 2006-04-21 06:43:03 +00:00
Gerhard Killesreiter b354396b69 #59528, password_confirm fields don't highlight errors, patch by sammys 2006-04-20 16:35:29 +00:00
Gerhard Killesreiter 297ed741f8 #58221, Turn #after_build into a functions array in order to make validation of date fields possible. Patch by yched, tenrapid
Also makes forms API more consistent (see #pre_render)
2006-04-20 07:11:37 +00:00
Dries Buytaert d071f99172 - Removing trailing whitespace. 2006-04-17 20:48:26 +00:00
Steven Wittens fb8ef28375 #56921: Remove all reference magic from form api. w00t. 2006-04-15 21:52:44 +00:00
Gerhard Killesreiter 062412e1a4 #58586, code simplification, patch by chx 2006-04-13 19:50:13 +00:00
Gerhard Killesreiter 61b9b3587d #58586, Checkbox element is broken, patch by chx 2006-04-13 17:49:25 +00:00
Gerhard Killesreiter 6b80d55a80 #58536, A #required element always needs validation, patch by chx
fixes checkboxes, radios, and selects.
2006-04-13 14:56:13 +00:00
Gerhard Killesreiter 70aae83c8e #58166, fixes for typos, patch by Uwe Herrmann 2006-04-11 11:33:15 +00:00
Gerhard Killesreiter 29f51725e2 #57836, Remove the reference indicator from drupal_validate_form, patch by chx 2006-04-08 17:18:25 +00:00
Gerhard Killesreiter 8c3ea3d869 #57832, fix reference for forms docs, patch by Moshe 2006-04-08 17:16:10 +00:00
Gerhard Killesreiter 27e562e390 #57694, Class attributes form-select and form-textarea more consistent, patch by Flanker, cleaned up by me 2006-04-07 13:22:12 +00:00
Gerhard Killesreiter 14178a50f1 #55408, hook_validate called twice, patch by chx 2006-04-07 13:00:37 +00:00
Gerhard Killesreiter c3cb1ea435 #56921, revert earlier patches, patch by chx 2006-04-06 15:30:19 +00:00
Gerhard Killesreiter 35c4ad2bc2 #54104, CSS classes broken on all form elements, patch by Nedjo 2006-04-05 18:12:48 +00:00
Neil Drumm 352fb57d6c #56921 by chx, removing the $form = from $form = form_builder($form_id, $form) then it works. 2006-04-02 23:14:51 +00:00
Gerhard Killesreiter 3a84ed2a90 #56921, break up references in _validate, patch by chx 2006-04-02 13:07:00 +00:00
Neil Drumm 6ad023451a #56143 by chx: Non multiple form elements also set to array 2006-03-29 23:29:41 +00:00
Gerhard Killesreiter 4779490127 #56089, fixed typo, patch by tenrapid 2006-03-28 06:03:14 +00:00
Gerhard Killesreiter cad28df22b #56089, $form['#redirect'] shouldn't be clobbered by the _submit return value., second try, patch by chx 2006-03-28 01:45:41 +00:00
Gerhard Killesreiter d0818780e3 #55766, Custom submit handlers get insufficient arguments, patch by Adrian 2006-03-27 18:07:32 +00:00
Gerhard Killesreiter ca1dbd8099 #56089, $form['#redirect'] shouldn't be clobbered by the _submit return value., patch by Adrian 2006-03-27 18:04:29 +00:00
Gerhard Killesreiter 4db70f8a62 somehow escaped committing, belongs to #28625 2006-03-26 17:41:06 +00:00
Gerhard Killesreiter 247451fca5 do not allow override of #value => NULL for #type => value elements
patch by chx
2006-03-25 18:02:52 +00:00
Gerhard Killesreiter dcfbcf5c71 #51303, Forms with form tokens fail validation for anonymous users when caching is enabled, patch by chx 2006-03-20 16:28:10 +00:00
Gerhard Killesreiter d4db109e42 #54019, Can't set classes on submit elements, patch by m3avrck 2006-03-16 15:32:44 +00:00
Gerhard Killesreiter c7c9b57ec2 #53967, form_builder checkbox/textfield/validation stuff, patch by hunmonk and chx 2006-03-15 08:57:37 +00:00
Dries Buytaert 2a3e3b2fed - Patch #53480 by chx et al: clean and harden form_builder for various types of posted elements. 2006-03-12 09:28:12 +00:00
Neil Drumm c828449991 #52292 by hunmonk, multipart node forms broken
Adds a new form attribute that lets form writers hook into a conveniant place when the form building requires knowledge of the validation results.
2006-03-09 22:55:01 +00:00
Dries Buytaert 21a3c24380 - Patch #52292 by hunmonk/chx: multipart node forms were broken. 2006-03-06 14:46:51 +00:00
Neil Drumm 4b663a62af #52484 by chx: filter_form needs validation 2006-03-05 02:46:55 +00:00
Dries Buytaert 350b8b346e - Patch #51516 by Steve Dondley: it should be possible to set errors on selection items. 2006-03-04 18:03:57 +00:00
Gerhard Killesreiter aeead6cf9c #48209, Prevent system module forms (system/theme settings) from saving 'reset' to the variables table., patch by Markus Petrux 2006-02-27 14:57:54 +00:00
Gerhard Killesreiter 539994e29c #43826, no way to suppress form_id, patch by wtanaka 2006-02-27 14:46:49 +00:00
Dries Buytaert f29e0405f4 - Patch #49799: fixed form goto problem (Today's critical bugfix #1.) 2006-02-23 10:30:03 +00:00
Dries Buytaert e172910dd3 - Patch #43953 by wtanaka: fixed problem with buttons on GET-forms. 2006-02-21 16:08:54 +00:00
Dries Buytaert 62b610d8d9 - Patch #48918 by chx: remove POST from poll. 2006-02-17 10:51:57 +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 da1d11935d - Patch #45821 by jvandyk: improved 'illegcal choice in .' messages 2006-02-09 07:34:16 +00:00
Dries Buytaert afde65151c - Patch #47420 by m3everck: put fieldset descriptions at top. 2006-02-05 15:45:09 +00:00
Dries Buytaert 035fc5c649 - Patch #47544 by Morbus: Element #name, not #id, were being passed to theme_form_element. 2006-02-04 09:50:28 +00:00
Steven Wittens b005189398 - #42083: Form API IP should be xhtml id of <form> tag 2006-02-02 02:10:31 +00:00
Steven Wittens 635cf5eb6d - #39179: Allow skipping of option validation for selects 2006-02-02 01:35:32 +00:00
Dries Buytaert dbf0bb7e4c - Patch #46255 by chx et al: don't save formapi data for user registrations. 2006-01-27 15:57:43 +00:00
Dries Buytaert 8e47cc95c5 - Patch #45845 by Jaza: Weight elements need default value of zero. 2006-01-26 13:39:48 +00:00
Dries Buytaert 0293848199 - Patch by chx: made form tokens work. 2006-01-25 13:59:05 +00:00
Dries Buytaert 552b5e5e7a - Patch #46227 by yogadex: fixed problem with form validation. 2006-01-25 08:40:53 +00:00
Dries Buytaert 6f978a04f9 - Patch #45793 by chx: fixed bug in user.module that results in storing plain text passwords. 2006-01-24 10:15:03 +00:00
Dries Buytaert 4c83a0347a - Patch #36591 by chx: use session id to check form submissions, rather than the IP address. 2006-01-24 10:13:27 +00:00
Dries Buytaert b9f6b72a58 - Patch #45834 by jvandyk: removed forms API warnings. 2006-01-24 08:20:45 +00:00
Dries Buytaert 616544667f - Patch #45281 by flevour/chx: fixed problem with categories not being set properly validated. 2006-01-19 17:53:53 +00:00
Dries Buytaert 7b87ff1a6f - Patch #45365 by chx: critical bugfix: Fix and simplify selection options. 2006-01-19 09:22:16 +00:00