Commit Graph

466 Commits (40eeac9ebbb5a02ae9bebcd3191359734ed60176)

Author SHA1 Message Date
Dries Buytaert 1d390ef36c - Patch #216059 by nedjo, theborg, karens, goba, webchick et al: AHAH triggered by text input enter key press breaks autocomplete. 2008-02-12 13:52:33 +00:00
Dries Buytaert b8a1eab1fb - Patch #210131 by dvessel, catch, John, et al: updated jQuery library. 2008-02-06 19:38:28 +00:00
Gábor Hojtsy 06bb3d2e09 #117748 by quicksketch: short fix to trim() required fields for validation, with documentation 2008-02-04 10:23:32 +00:00
Gábor Hojtsy ab7fb80056 #216061 by Eaton: nid was not set in node creation (programatic node creation regression) 2008-02-03 19:26:10 +00:00
Gábor Hojtsy 9edadd40dc #216042 by Eaton: provide the complete form to element validators as well (critical regression for CCK) 2008-01-30 21:42:17 +00:00
Gábor Hojtsy de791184f3 #214922 by Eaton: fix code typo which prevented from image buttons in a tree form from working 2008-01-28 12:09:12 +00:00
Gábor Hojtsy eb7d6f05ff #206955 follow up by merlinofchaos: avoid misusing default values for image buttons 2008-01-28 00:15:34 +00:00
Gábor Hojtsy ea79c66c03 #194327 by dvessel, David_Rothstein, catch, theborg: IE form submission button correction was buggy 2008-01-25 16:24:48 +00:00
Gábor Hojtsy fe65a869fa #195283 by pwolanin: code documentation for the 'forms' function group 2008-01-21 15:17:01 +00:00
Gábor Hojtsy d2fddb4763 #201017 by chx: AHAH callbacks were not working for regular buttons 2008-01-02 15:18:15 +00:00
Dries Buytaert 178c28535b - Patch #204900 by webernet: code style fixes. Likely my last patch of the year. Fiew. Thanks all, and see you on the other side. :) 2007-12-31 08:54:37 +00:00
Gábor Hojtsy de79420bc9 #195176 by chx: form_set_error doxygen was misleading 2007-12-23 12:33:13 +00:00
Gábor Hojtsy ac4c8f7ab0 #203274 by Pasqualle: remove excessive witespace from our code (minor) 2007-12-22 23:24:26 +00:00
Gábor Hojtsy 310765bccb #192767 follow up by chx: array_shift() should not be called with runtime references 2007-12-19 22:42:07 +00:00
Gábor Hojtsy e7fc2383df #192767 by fago, Eaton, chx: taking form_state per reference in form constructor function. Will be replaced with a nicer PHP 5 solution in Drupal 7. 2007-12-18 16:24:01 +00:00
Gábor Hojtsy 5622bce2d5 #198579 by webernet and hswong3i: a huge set of coding style fixes, including:
- whitespaces at end of lines
 - indentation
 - control structure usage
 - whitespace in empty lines
 - phpdoc comment formatting
2007-12-08 14:06:23 +00:00
Gábor Hojtsy d83289f857 #196667 (GHOP 45) by fberci: add '@ingroup themeable' to all themeable functions 2007-12-06 09:58:34 +00:00
Gábor Hojtsy bc0d7cb369 XSS fixes forward ported from Drupal 5.1 - previously not committed parts of http://drupal.org/cvs?commit=53675 2007-12-05 18:13:03 +00:00
Dries Buytaert 9a96837b89 - Patch #163246 by keith smith, freso, O Govinda, catch, webchick et al: fixed minor spelling issues and fixed spacing issues. 2007-11-26 16:36:44 +00:00
Gábor Hojtsy 8baa1261ed #194652 by Heine: specify explicit accept-charset for forms to avoid browser guessing 2007-11-23 12:02:38 +00:00
Gábor Hojtsy 4615c96d59 #193191 by chx: allow form elements to enable form caching - allows custom form elements to leverage the AHAH framework 2007-11-19 19:23:28 +00:00
Gábor Hojtsy c40af9443d #193274 by dmitrig01 and quicksketch: send submit button data with AHAH submissions 2007-11-19 10:05:48 +00:00
Dries Buytaert 17d1527e3d - Patch #146466 by douggreen, Steven et al: Remove temporary table usage from search module 2007-11-13 14:04:08 +00:00
Gábor Hojtsy c856eac135 #191104 by keith.smith: (usability) change occurances of node to 'post' and 'content' as appropriate 2007-11-12 19:06:33 +00:00
Gábor Hojtsy 702c0a2bcd #190283 by myself and JirkaRbyka: use get_t() in pre-database setup code, add missing javascript key to language objects (kills notices) and document st() better 2007-11-11 16:14:45 +00:00
Dries Buytaert c187cc95b6 - Patch #168829 by Neil Drumm: fixed link in documentation. 2007-11-09 07:40:55 +00:00
Dries Buytaert a547bdbce1 - Patch #172097 by Eaton: improved PHPdoc of form API. 2007-10-31 15:10:33 +00:00
Dries Buytaert 1cf05b0019 - Patch #89196 by catch, keith, earnie, webchick et al: string massaging. 2007-10-25 15:32:56 +00:00
Gábor Hojtsy bad3e24164 #111719 follow up patch by multiple contributors: ensure proper XHTML id attribute values for form elements 2007-10-24 13:35:26 +00:00
Gábor Hojtsy b94f2716cf #184867 by deekayen, catch and keith.smith: fix some spelling errors in our source code and messages printed 2007-10-21 18:59:02 +00:00
Gábor Hojtsy 6dcfce0127 #111719 follow up patch by chx: roll back form item ID patch 2007-10-20 10:49:55 +00:00
Dries Buytaert 8d526b10e5 - Patch #111719 by dvessel et al: ensure clean form IDs. 2007-10-19 16:59:28 +00:00
Gábor Hojtsy 8a10f3ea22 #181328: pass on whole form to #process functions to enable advanced form handling (such as required by some CCK widgets) 2007-10-16 14:06:23 +00:00
Gábor Hojtsy 385c2afac1 #182178 by bragon: cols is a required attribute on textarea 2007-10-15 21:19:00 +00:00
Gábor Hojtsy 1e8ddda9b7 #169079 by yched: improve consistency of menu API and batch API by allowing batch definition in non .module files, which opens the possibility of better performing batches (which are likely to reside in .admin.inc files generally)
- apply this change in locale.module
 - improve batch API code documentation
2007-10-15 15:18:39 +00:00
Gábor Hojtsy 19322c375b Four watchdog() calls which still used t(), identified by myself after implementing extraction code for Drupal 6 at #182765 2007-10-15 14:52:18 +00:00
Gábor Hojtsy 3fb218cb7e #182310 by chx: remove #DANGEROUS_SKIP_CHECK, as with the AHAH functionality now we have safer methods to add things in the cached form for validation, so we don't need this security hole possibility kept anymore. 2007-10-11 09:22:39 +00:00
Gábor Hojtsy 212c0484b9 #181741 by quicksketch: fix AHAH throbber/progress bar issues and generalize progress display configuration to allow module developers to choose from the throbber and progress bar 2007-10-10 10:24:25 +00:00
Dries Buytaert bb5e71d4ee - Patch #172636 by chx: fixed watchdog call. 2007-10-06 15:23:18 +00:00
Gábor Hojtsy 31b73898af #157752 by quicksketch: extend AHAH functionality to most types of form elements, without writing JavaScript. Also AHAH enable the blocks admin page. 2007-10-05 09:35:09 +00:00
Gábor Hojtsy c9c86ebf84 #145251 by chx: document that one needs to include the proper 'op' value in arrays passed to drupal_execute() to trigger the right action 2007-09-25 15:14:37 +00:00
Gábor Hojtsy 5206daafd6 #177529 by chx: if no checkbox was selected, we still need an empty array() 2007-09-25 11:29:10 +00:00
Gábor Hojtsy 00ae7949ef #172824 by yched: let the batched processes perform drupal_execute() properly 2007-09-14 10:40:55 +00:00
Gábor Hojtsy 5030ea40a5 #150851 by pwolanin and chx: different radio buttons in the same set should have different HTML id values (XHTML validity fix) 2007-09-11 17:23:58 +00:00
Dries Buytaert 2db2c039fb - Patch #172950 by webernet: code style fixes. 2007-09-04 21:10:45 +00:00
Dries Buytaert a8800e4f26 - Patch #146667 by coofercat: fixed bug in form builder. 2007-08-26 07:31:48 +00:00
Gábor Hojtsy 9291424560 #169247 by profix898 slightly modified: fix E_NOTICE when form_id is not set on a non-programmed form 2007-08-23 18:02:52 +00:00
Gábor Hojtsy 87bdc95bff #165013 by Eaton: fix image button behaviour by processing the right values coming in the request 2007-08-10 10:51:17 +00:00
Gábor Hojtsy db5311d144 #85208 by neclimdul and bjaspan (slightly modified): if no maxlength was specified, do not generate an empty HTML attribute 2007-08-09 10:43:03 +00:00
Dries Buytaert 80ff5109a7 - Patch #162708 by Eaton and Earl: add support for image buttons to FAPI3.
This is a small form API extension (doesn't break existing code) that
  facilitates the Drupal 6 upgrade of the Views module.  A good example
  of why it can be beneficial to start upgrading your modules early on in
  the code freeze. ;)
2007-07-29 17:28:23 +00:00
Dries Buytaert eb65040c5e - Patch #149593 by yched: batch API fixes. 2007-07-20 05:44:13 +00:00
Dries Buytaert 834eab503f - Patch #121620 by Eaton et al: fixes for formAPI #type .'_value' callback patch. 2007-07-14 15:23:29 +00:00
Gábor Hojtsy e27972be52 #157605 by Wim Leers: remove two lines of dead code from expand_date() 2007-07-12 11:03:54 +00:00
Dries Buytaert 8cd661b82b - Patch #121620 by Eaton, dopry et al: formAPI #type .'_value' callback, remove hardcoded switch from form.inc, has been ready for about one week and required to make the CCK better. 2007-07-04 15:45:37 +00:00
Dries Buytaert 2ceae6ad58 - Patch #154398 by quicksketch et al: add dynamic AHAH submission properties to Forms API. This patch was ready for a long time and is somewhat of a usability improvement (enabler). 2007-07-04 15:42:38 +00:00
Dries Buytaert 20093d5fc8 - Patch #111086 by webchick: fix contact module error message. 2007-07-03 19:53:01 +00:00
Dries Buytaert ef6deb6c9a - Patch #154299 by Eaton: button details are lost. 2007-07-03 19:13:49 +00:00
Dries Buytaert ee701b3336 - Patch #155986 by Uwe: fixed typos. 2007-07-02 14:41:37 +00:00
Dries Buytaert e59852d336 - Rollback of patch #147723: delete API. Talked to Steven and Gabor and we
unanimously agreed to rollback the deletion API.  We all support the
  features this patch added, yet not its actual design and implementation.
  After some talk, we decided that it would be better for Drupal -- in the
  long term -- not to go with a solution that isn't 100%. We also recognize
  that in the short term, this patch would have been useful addition. So
  let's figure out how we can implement this properly in D7.
2007-07-01 17:41:16 +00:00
Dries Buytaert 2bf7c1c0e3 - Patch #147662 by Gordon et al: add new #pre_render callback to drupal_render(). 2007-06-28 07:48:41 +00:00
Steven Wittens 38a1300df2 #147723: Deletion API (by hunmonk). Woop woop. 2007-06-22 05:44:21 +00:00
Dries Buytaert a92aff941a - Patch #145177 by asimmonds: drupal_execute fixes. 2007-06-17 12:07:51 +00:00
Gábor Hojtsy 57c9a13e1f #118026 by kkaefer with fixes from myself: JavaScript translation support and script.js as a default theme JS file to use, if found 2007-06-08 12:51:59 +00:00
Dries Buytaert 9e0da3dc7c - Patch #143026 by ChrisKennedy and Steven: dynamically check password strength and confirmation. 2007-06-08 06:04:15 +00:00
Dries Buytaert 27388f6655 - Patch #149176 by chx, David et al: getting rid of the sequences table, using db_last_insert_id() instead of db_next_id(). 2007-06-05 12:13:23 +00:00
Dries Buytaert 1fe90cba4f - Patch #146667 by Eaton: correct builder argument ordering, eliminate redundant arguments 2007-06-04 07:22:23 +00:00
Dries Buytaert 21e3e4b490 - Patch #136067 by ChrisKennedy: fixed required-attribute of password fields. 2007-05-31 12:36:18 +00:00
Dries Buytaert a55c0d676b - Patch #145135 by bjaspan and stefan: xhtml compliance. 2007-05-28 18:53:29 +00:00
Dries Buytaert 7131fd5313 - Patch #146536 by nedjo: typo programed -> programmed 2007-05-28 06:20:28 +00:00
Dries Buytaert 96926ca047 - Patch #146470 by Eaton et al: standardize form API3 hook parameter order. 2007-05-28 06:08:47 +00:00
Dries Buytaert 2ea8460ea9 - Patch #146187 by walkah: FAPI 3 removes ['#post'] from hook_form_alter. 2007-05-25 15:39:34 +00:00
Dries Buytaert b4ef53eccc - Patch #127539 by yched: batch processing fixes. 2007-05-16 07:56:19 +00:00
Dries Buytaert ac65ff9074 - Patch #138706 by eaton, chx, webchick, yched et al: form api 3 ... yay. :) 2007-05-14 13:43:38 +00:00
Gábor Hojtsy a0caf14052 #127539 by yched: simplify developer docs about the finished value and fix an URL placeholder 2007-05-07 10:15:57 +00:00
Dries Buytaert 54d0948f25 - Patch #133189 by Darren Oh: fixed empty date field test. 2007-05-07 07:29:23 +00:00
Dries Buytaert e66371cac1 - Patch #137211 by merlinofchaos: move theme information to .info files and improved theme inheritance. 2007-05-06 05:47:52 +00:00
Gábor Hojtsy c740ac7fd5 #127539: progressive operation support, refactoring update.php code to a generic batch API to support runnning operations in multiple HTTP requests
- update.php is already on the batch API
  - node access rebuilding is in the works
  - automatic locale importing is in the works

 Thanks to Yves Chedemois (yched) for the good code quality, very wide awareness of issues related to batches,
 and the fantastic turnaround times. Hats off.
2007-05-04 09:41:37 +00:00
Dries Buytaert f73610bec6 - Patch #76588 by Gabor: made log messages translatable. Yay. 2007-04-24 13:53:15 +00:00
Dries Buytaert 0b74f313a0 - Patch #138376 by dww: fixed array vs. string bug when defining #default_value array for a multiselect. 2007-04-23 17:00:36 +00:00
Dries Buytaert e675979091 - Patch #134493 by douggreen: getting the Drupal coding standards right in core. Woot. Woot. 2007-04-13 08:56:59 +00:00
Dries Buytaert dcbb5fa3f4 - Patch #107061 by Steven et al: add jQuery teaser splitter. 2007-04-09 13:58:03 +00:00
Dries Buytaert 5bbbf10ba8 - Patch #130987 by merlinofchaos: added theme registry for easier themability. 2007-04-06 13:27:23 +00:00
Steven Wittens f7440d4d73 #130971: Kitchen sink (E_NOTICE compliance / Code style / Bugfix in book toc) 2007-03-27 05:13:55 +00:00
Dries Buytaert eb6b848de6 - Patch #110888 by Eaton: unify hook _alter() 2007-03-26 00:35:59 +00:00
Dries Buytaert 757ac966bb - Patch #130630 by chx: provide an id on the form item wrapper div. 2007-03-25 19:57:56 +00:00
Dries Buytaert 4b635f6d0a - Patch #128081 by Eaton: remove #base, paving the path for a simpler form API. 2007-03-17 18:30:14 +00:00
Dries Buytaert b1d492ee98 - Patch #52878 by dopry and ChrisKennedy: make form reference API use nice PHPdoc links. 2007-03-07 17:31:40 +00:00
Dries Buytaert 0be18f09ed - Patch #125418 by hunmonk: make #skip_duplicate_check easier to use. 2007-03-07 12:59:22 +00:00
Dries Buytaert 02da223897 - Patch #107358 by m3avrck, robert douglass, heine, eaton et al: Prevent multiple form processing: causing duplication of nodes/users. 2007-02-27 12:45:13 +00:00
Dries Buytaert dc5843bd30 - Patch #111347 by Steven: refactor url() and l(). 2007-02-15 11:40:19 +00:00
Dries Buytaert 05a708fb06 - Patch #112715 by chx, webchick, asimmonds, et al: fixing E_ALL notices. Thanks. 2007-01-31 15:49:26 +00:00
Dries Buytaert 76b850ab52 - Patch #109125 by Eaton: Multistep forms lose context on validation errors. 2007-01-29 19:10:22 +00:00
Dries Buytaert 6a1a93cefa - Patch #111289 by jvandyk: form.inc cleanup. 2007-01-23 19:17:55 +00:00
Steven Wittens d351a2218a #109326: #id attribute not output for buttons. 2007-01-15 04:09:40 +00:00
Steven Wittens 36cd6b2b21 #107966: Make login fields consistent size. 2007-01-11 03:24:42 +00:00
Steven Wittens eb28074aa3 #108320: Form API optimization, don't call element_sort unless needed. 2007-01-10 23:30:07 +00:00
Dries Buytaert da55db28f9 - Patch #24023 by dww: rename form_get_option_key() and fix its behavior. 2007-01-05 19:08:30 +00:00
Neil Drumm 8bd5340561 #98720 by chx. Better checking of selected options. 2007-01-02 05:58:53 +00:00
Dries Buytaert ce2088e817 - Patch #105454 by kkaefer, ChrisKennedy, RobRoy et al: fixed update paths. 2006-12-29 18:58:48 +00:00
Steven Wittens bc82525c95 #24023 (follow up): Add API function for dealing with form API #options arrays. 2006-12-29 00:19:58 +00:00
Dries Buytaert d5fb9a2398 - Patch #104598 by ChrisKennedy: validate max length of textfields. 2006-12-21 16:16:44 +00:00
Steven Wittens bda8b0fdb5 #40871: Allow class on checkboxes/radios group container. 2006-12-12 10:01:38 +00:00
Steven Wittens 655c138813 #72003: Remove spaces in autogenerated form #ids 2006-12-12 09:39:50 +00:00
Steven Wittens f7b6070551 #102718: Fix multistep form API argument passing. 2006-12-12 04:52:38 +00:00
Dries Buytaert 7af1ba1e04 - Patch #99087 by Eaton, grugnog2 et al: multistep forms shouldn't fill the session table. 2006-12-06 15:49:45 +00:00
Dries Buytaert 38f3050777 - Patch #101236 by Uwe Herman: fixed typos in the documentation. 2006-12-05 05:47:37 +00:00
Neil Drumm 8bf48bf999 #99645 by chx. Reshuffle some comments. 2006-11-26 22:35:20 +00:00
Neil Drumm e2efd524d0 #93816 by lyricnz. PHP notice cleanup. 2006-11-16 09:06:59 +00:00
Neil Drumm 0accf8fe1e #90508 by Heine and the security team. Every form gets a token. 2006-10-31 08:06:18 +00:00
Neil Drumm bda84648e2 #24023 by vhmauery. Properly handle object option flattening. 2006-10-31 07:37:25 +00:00
Neil Drumm 2ac86c8862 #24023 by chx. Allow multiple select options with the same value and implement it for taxonomy selection. 2006-10-20 20:55:03 +00:00
Dries Buytaert 91fa912747 - Patch #80749 by wdp: don't generate empty attributes. 2006-10-18 11:43:27 +00:00
Dries Buytaert 875e99befe - Patch #88109 by Eaton, chx et al: FormAPI 2.0 doesn't support dynamic form ids. 2006-10-12 20:36:51 +00:00
Steven Wittens 4bd256a20f #85166: div around radios (checkboxes) and tweak margins 2006-10-03 00:17:52 +00:00
Dries Buytaert 669fc40be0 - Patch #85584 by erdemkose: bugfix: pass to the form. 2006-10-02 11:49:50 +00:00
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
Dries Buytaert e84a98a22b - Patch #45349 by Morbus Iff: input filters aren't sorting correctly infForms API. 2006-01-19 08:54:41 +00:00
Dries Buytaert 9528c30037 - Patch #45281 by flevour/chx: fixed problem with categories not being set properly on editing. 2006-01-18 19:46:57 +00:00
Dries Buytaert a35ca55bbf - Patch #45224 by jvandyk: improved PHPdoc comments. Corrected spelling, improved grammar. 2006-01-18 19:04:12 +00:00
Dries Buytaert 84beb25884 - Patch #44771 by jvandyk: small performance improvement. 2006-01-15 16:55:35 +00:00
Steven Wittens 2e9bbda791 - #44772: {} -> [] (in anticipation of PHP de-deprecation) 2006-01-15 07:14:14 +00:00
Dries Buytaert a3ae365057 - Patch by Zen/drumm: fixed glitch in form_select. 2006-01-13 07:44:59 +00:00
Dries Buytaert 57447dc571 - Patch #42105 by chx / merlinofchaos: made form elements themable. 2006-01-10 19:37:27 +00:00
Dries Buytaert 6aae7ff747 - Patch #40927 by vhmauery: added attributes for files. Required for some contributed modules to work. 2006-01-09 10:22:12 +00:00
Dries Buytaert df82a1edc4 - Patch #43835 by jakeg: critical bugfix: fixed admin/modules. 2006-01-08 16:04:58 +00:00
Dries Buytaert 7f083e0c2f - Patch #35570 by ccourtne and Steve: forms API does not adhere #return_value for checkboxes. 2006-01-08 12:40:25 +00:00
Dries Buytaert cade6b2bda - Patch #39179 by chx; make optgroups work with choice checker. 2006-01-06 07:15:47 +00:00
Dries Buytaert 780d33c77b - Patch #43429 by drumm: bug fix: made comparison of checkboxes more strict. 2006-01-05 11:05:14 +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 45db74aa77 - Patch #37494 by darius / chx: fixed problem with dates. 2006-01-02 08:04:02 +00:00
Steven Wittens 5e49dd2a68 - #42446: Resizable textareas. 2005-12-29 03:59:30 +00:00
Dries Buytaert 6c2f3e7982 - Patch #39179 by chx et al: fix checkboxes #default_values. 2005-12-26 11:14:14 +00:00
Dries Buytaert 4f13fbb709 - Patch #41023 by wtanaka: custom form elements can't cleanly set a value for themselves. 2005-12-19 14:43:42 +00:00
Dries Buytaert eb412f7c7e - Patch #39179 by chx: improved validation of forms. 2005-12-19 14:30:53 +00:00
Dries Buytaert bd4fe6ede9 - Patch #40813: Taxonomy forms should be in a fieldset. 2005-12-16 06:23:46 +00:00
Dries Buytaert b6dba6fa8e - Patch #40486 by chx/netbjarne: duplicate form id's breaks html validation. 2005-12-15 22:47:16 +00:00
Dries Buytaert 764f1177ef - Patch #40631 by Chris Johnson: is_array() slower than isset() or empty(). 2005-12-14 20:10:45 +00:00
Dries Buytaert c0a43c50dc - Patch #40765 by chx: fixed problem with form types. 2005-12-14 13:22:19 +00:00
Dries Buytaert 0f80b09a4a - Patch #39875 by chx: make form sorting work with PHP5. 2005-12-05 21:21:49 +00:00
Dries Buytaert 7ef324ec84 - Unrolled chx's form sort patch. 2005-12-05 09:48:54 +00:00
Dries Buytaert a2d8174cd4 - Patch #39875 by chx: form_sort is broken with PHP5. 2005-12-05 08:47:24 +00:00
Dries Buytaert 77f55aa7f2 - Patch #39989 by hunmonk: can't pass args properly to #process callback. 2005-12-05 08:41:29 +00:00
Dries Buytaert a806db88fa - Patch #39085 by chx/angie: simplified #tree-#parent code. 2005-12-04 08:14:07 +00:00
Dries Buytaert 75d2089fba - Patch #39155 by Alex/chx: #validate, #submit, #process consistency 2005-12-03 09:44:50 +00:00
Dries Buytaert 26bd449860 - Patch #39576 by chx: rename '_execute' to '_submit' and '#execute' to '#submit'. 2005-12-02 15:21:01 +00:00
Dries Buytaert 63a78a617b - Patch #38038: hook_elements override instead of merge. 2005-11-28 16:37:11 +00:00
Dries Buytaert 50f148dab7 - Patch by chx: fixed form validation. 2005-11-23 16:21:12 +00:00
Dries Buytaert a3f84c7782 - Patch #38349 by hunmonk:
1. hook_form_validate_alter and hook_form_execute_alter have been eliminated. there usage was limiting and a bit confusing. now, only hook_form_alter remains
   2. replacing those hooks are the #validate and #execute attributes. these can be used either when building the form in a module, or via hook_form_alter. these attributes are built in array form, to allow for flexibility in how they are called. for example, a module could simply add an element to the #validate array via hook_form_alter if it wished to perform additional validation, or it could redeclare the entire #validate array if it wanted to override any existing validation
   3. attributes #validation_arguments and #execution_arguments have been added to allow args to be used w/ custom validation and execution functions. this are also declared in array format
   4. renamed #valid attribute to #validation. this doesn't cause any conflicts, and makes the naming convention more consistent
   5. renamed the existing #execute attribute associated w/ submit buttons to #submit
2005-11-22 21:31:15 +00:00
Dries Buytaert 1b388b4653 - Patch #35863 by chx: add link to forms API documentation 2005-11-21 18:14:23 +00:00
Dries Buytaert 03dda45573 - Patch #37752 by chx and Richard: renamed #post_process to #after_build. 2005-11-21 18:10:26 +00:00
Dries Buytaert 463ffe24ec - Patch #35724 by asimmonds: fixed handling of empty form fields. 2005-11-21 16:21:51 +00:00