Commit Graph

1374 Commits (784202418fcd0669271389a83b955e6ef2055f28)

Author SHA1 Message Date
Steven Wittens 5cf74ccb72 #27582: menu.inc doc update 2005-11-24 22:04:10 +00:00
Dries Buytaert 5f36738a11 - Patch #38279 by paddy_deburca: fixed theme_item_list() not to generate an empty <ul></ul> tag when $items is empty. 2005-11-24 20:08:54 +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 d52bcb63cc - Patch #37766 by Thomas Ilsche: fixed date handling in XML-RPC backend. 2005-11-21 21:35:43 +00:00
Dries Buytaert 7a5c5b83a7 - Patch #35725 by drumm: improved conf_init() documentation. 2005-11-21 21:33:44 +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
Steven Wittens cbc92f59cf #35725: Make site.com:80 work like site.com 2005-11-21 16:24:41 +00:00
Dries Buytaert 463ffe24ec - Patch #35724 by asimmonds: fixed handling of empty form fields. 2005-11-21 16:21:51 +00:00
Steven Wittens 17205b6e62 #36352: Don't prefix temporary table names after all.
#36658: Make search query pgsql compatible.
2005-11-21 15:55:17 +00:00
Dries Buytaert 61ebf7b56b - Patch #37401 by webchick: fixed dependency of date selection form element on profile module. 2005-11-21 09:42:14 +00:00
Dries Buytaert 5b4ebcdb25 - Patch #36828 by m3avrck: some MySQLi fixes and some PHP5 fixes. 2005-11-18 14:03:55 +00:00
Dries Buytaert f852db82dc - Patch #37915 by chx: improved readability of forms API. 2005-11-18 13:48:09 +00:00
Dries Buytaert 3b7a6a4931 - Patch #37400 by vwX/chx: fixed problem with methodHelp 2005-11-13 08:18:12 +00:00
Steven Wittens 21bed11e66 - Add missing url()s around form actions (these would break without clean URLs) 2005-11-13 02:32:18 +00:00
Dries Buytaert aeed4cd8e4 - Patch #35644 by webchick: forms API simplificiations. 2005-11-12 11:26:16 +00:00
Dries Buytaert 64a617c208 - Patch #26249 by Morbus: improved handling of temporary files/directory.
If your module uses variable_get('file_directory_temp', ...) or
  variable_get('file_directory_path', ...) please update it to use the new
  API.

  A list of affected modules is available at http://drupal.org/node/26249#comment-54194.
2005-11-12 09:23:50 +00:00
Dries Buytaert 7dd24bec5c - SQL query maintenance: '%d' -> %d. 2005-11-12 09:14:30 +00:00
Steven Wittens 36b62d969d #37078: forms api does not respect form_id when populating from ['edit'] or validating 2005-11-12 03:45:57 +00:00
Dries Buytaert dac42f83c8 - Patch #36079 by ax/chx: various blogapi.module fixes. 2005-11-09 19:03:35 +00:00
Dries Buytaert 3768616a65 - Patch #36829 by hunmonk: current form_id_form_alter will cause name collisions. 2005-11-08 20:17:42 +00:00
Dries Buytaert d8425d23d2 - Patch #36606 by hunmonk: validation callback functions can't be overridden. 2005-11-08 20:02:24 +00:00
Dries Buytaert 7f0909ebfd - Patch #36407 by DriesK: make sure the private key is set. 2005-11-06 11:38:56 +00:00
Dries Buytaert 745b7beda8 - Patch #10658 by Morbus: create new folders with the right permissions. 2005-11-04 20:19:14 +00:00
Steven Wittens 2ad97f0277 - #36255: Fix db_query_temporary() in pgsql
- Prefix temporary table names (helps on restricted hosts)
2005-11-04 13:02:51 +00:00
Dries Buytaert ea53aad7c8 - Patch #22215 by Richard Archer: refactored primary and secondary links.
Deprecates the primary_links module.

  This patch was much needed.  Thanks Richards!

  NOTE: if some themers could investigate if there is room for improvement
        with regard to theming, that would be awesome.
2005-11-03 19:33:37 +00:00
Dries Buytaert cbcb85560a - Patch #35816 by chx: fixed problem with checkbox handling in the form API. 2005-11-03 15:42:31 +00:00
Dries Buytaert 46abc88ee4 - Patch #26249 by crunchywelch, Junyor: use upload_tmp_dir as default temporary directory. Fixed file problems on Windows NT systems. 2005-11-01 16:31:09 +00:00
Dries Buytaert 5684831958 - Patch #35874 by asimmonds: added missing $Id$ tags. 2005-11-01 09:58:01 +00:00
Dries Buytaert f2185037be - Patch #35630 by adrian: fixed problem with how form trees are build. 2005-10-29 07:00:33 +00:00
Dries Buytaert 22cf0b4ef7 - Patch #35410 by kbahey: made site offline feature work. 2005-10-29 06:58:56 +00:00
Dries Buytaert d01b4dbe10 - Patch #35354 by Moshe/chx: only update the last access time for authenticated users. 2005-10-28 13:35:49 +00:00
Dries Buytaert 699df6742b - Patch #34214 by ax:
* xmlrpc_value_calculate_type() fails for empty arrays
   * PHPDoc for xmlrpc_value_calculate_type()
   * use is_*() instead of gettype() as advised in the PHP manual (and document this)
   * coding style
2005-10-28 13:13:30 +00:00
Steven Wittens a3e47f1e44 - #33852: remove legacy.inc (in anticipation of the bridge stuff) 2005-10-28 01:06:36 +00:00
Steven Wittens f2675cfd3a - Remove left over class from form api conversion 2005-10-26 01:25:01 +00:00
Steven Wittens fbaede7ec0 - #35264: More form api fixes 2005-10-26 01:24:09 +00:00
Steven Wittens 0cac6939b7 - Fix usage of header() to drupal_set_header()
- Emit charset for blogapi RSD
2005-10-25 03:43:57 +00:00
Dries Buytaert 7f01d4f02b - Patch #34907 by gtcaz: "Array" printed in each region. 2005-10-23 09:47:53 +00:00
Dries Buytaert f6764cfbd8 - Patch #30930 by m3avrck/deekayen: cured PHP5 warnings. 2005-10-22 15:14:46 +00:00
Steven Wittens f31db8d70f - #22850: Search query containing / results in 404 on clean URLs. 2005-10-21 11:14:55 +00:00
Steven Wittens a9260fa2cd - #32603: Clean up theme_pager_link (drumm) 2005-10-21 10:58:15 +00:00
Steven Wittens 278e2dd309 - Add maintenance-page error screens when the php module for the dbtype is not loaded (just showed a blank screen before) 2005-10-20 21:30:50 +00:00
Dries Buytaert 76000f1d44 - Reverse last patch. 2005-10-18 14:54:54 +00:00
Dries Buytaert 13473ddc51 - Patch #33852 by Gerhard: make legacy.inc optional. 2005-10-18 14:52:50 +00:00
Dries Buytaert 8d460b406d - Patch #32573 by Moshe: added support for ordered lists to theme_item_list(). 2005-10-18 14:45:09 +00:00
Steven Wittens 909d6928ac - #28159: Advanced search features (hello from DrupalCon)
Presentation about it:
http://www.acko.net/files/drupal-search-slim.pdf
2005-10-18 14:41:27 +00:00
Dries Buytaert d3211f014d - Modified patch #13180/#29414: use mysql_real_escape_string() to escape
strings rather than addslashes().  mysql_real_escape_string() uses the
  connections charset settings to properly escape.
2005-10-13 10:23:17 +00:00
Steven Wittens 5f0e0f3649 - #33433: More form API fixes, and error handling improvements by Chx. 2005-10-13 10:02:31 +00:00
Dries Buytaert 75fe6b6c0a - Patch #33752 by chx, adrian, et al: another batch of form API changes/fixes. 2005-10-11 19:44:35 +00:00
Dries Buytaert 927d98d068 - Patch #33555 by leoburd: fixed typo in XML-RPC backend. 2005-10-10 09:03:11 +00:00
Dries Buytaert 59cb3c4568 - Patch #13224 by Richard Archer and Gerhard: improved gzip caching. 2005-10-09 21:51:43 +00:00
Dries Buytaert fd96728f3c - Second batch of form API fixes by chx. 2005-10-09 10:39:15 +00:00
Dries Buytaert 709b9005f5 - Modified version of patch #32622 by kbahey: added 'site offline/maintenance' feature.
(Untested because the admin/settings page doesn't work yet.)
2005-10-08 12:38:20 +00:00
Dries Buytaert 7863be5e82 - Patch #33433 by chx: fixed a number of form API problems.
* Default form value
    * Leftover debug function in form.inc
    * PHP5 issue with comment date (I got this patch from another issue)
    * Validation error fix (was calling legacy form validate)
    * Lots o' warnings on comment preview
    * Filter tips plus argument (gremlins. I swear this was not there.)
    * Message to clear what's going on with system settings
    * Non-freetagging taxonomies fixed
2005-10-08 12:21:47 +00:00
Dries Buytaert a1ae4da70b - Removing tabs and trailing whitespaces. 2005-10-07 06:51:43 +00:00
Dries Buytaert 7e1527ee61 - Patch #29465: new form API by Adrian et al.
TODO:
  + The contact.module was broken; a new patch for contact.module is needed.
  + Documentation is needed.
  + The most important modules need to be updated ASAP.
2005-10-07 06:11:12 +00:00
Dries Buytaert eafcfa1564 - Patch #4109: some URLs get ?PHPSESSID added to them. 2005-10-06 08:51:05 +00:00
Dries Buytaert 27b50ef542 - Revert. Was already committed. 2005-10-01 13:45:39 +00:00
Dries Buytaert c8c2fedc7e - Patch #32465 by Steven: mime decode for core. 2005-10-01 13:21:47 +00:00
Dries Buytaert c4757dd807 - Patch #32465 by Steven/killes: mime decode function. 2005-09-29 12:37:58 +00:00
Dries Buytaert bf08ab83b6 - Patch #32440 by ax: drupal_http_request() doesn't send proper Host: header. 2005-09-29 12:33:34 +00:00
Dries Buytaert cec8db72dd - add some space 2005-09-29 08:02:55 +00:00
Dries Buytaert 9f27e04470 - Patch by Ax: fixed links in documentation. 2005-09-27 15:06:14 +00:00
Dries Buytaert 67e68fc679 - Patch #28786 by Neil: move pagers out of table. 2005-09-24 07:53:26 +00:00
Dries Buytaert eedb392c76 - Patch #28420 by Jeremy: add the poster's IP/hostname to the /mix/. 2005-09-19 19:14:54 +00:00
Dries Buytaert 2b3126b2cc Patch #19934 by Morbus, chx: conf_init() should strip out port numbers in bootstrap.inc. 2005-09-19 19:13:35 +00:00
Dries Buytaert f906d2dd50 - Patch #31306 by ax: fixed menu system warning. 2005-09-18 17:03:26 +00:00
Dries Buytaert 2ef6b52c83 - Patch #28420 by Jeremy: provide a more generic interface that can be used
to validate other form submissions, not just comments. Two new functions
  are introduced, form_token() and form_validate(). The first function uses
  a private key and a public key to set a token in a hidden field. The second
  function validates the token. The comment and contect module are updated to
  use these functions.
2005-09-18 11:50:22 +00:00
Dries Buytaert ceb9859d70 - Patch #29030 by Goba, chx, Jose, et al: reworked the URL rewrite hook so URLs can be rewritten dynamically. 2005-09-18 10:32:05 +00:00
Dries Buytaert 5971f1e645 - Patch #28777 by Neil: use <thead> and <tbody> in theme_table(). 2005-09-15 20:58:17 +00:00
Dries Buytaert db1ef4bd2d - Patch #21924 by walkah: made enclosures use absolute URLs to work around broken RSS parsers. 2005-09-13 19:05:34 +00:00
Dries Buytaert 87df276acb - Patch #29910 by m3avrck, nsk, Thomas et al: added a mysqli database backend for use with PHP5 and MySQL 4.1 and above.
NOTE: I don't have MySQL 4.1 setup at the moment so I could _not_ test this patch.  Luckily, various people reported that it works.
2005-09-12 20:13:04 +00:00
Dries Buytaert 013b73e6ec - Patch #30122 by m3verick: changed include_once()'s to include "./$file"
for performance's sake.
2005-09-08 19:19:01 +00:00
Dries Buytaert 3b1e763d03 - Patch #30423 by Crell: added support for table <captions>.
TODO: look into http://drupal.org/node/28777?
2005-09-06 20:32:53 +00:00
Dries Buytaert d7139b85db - Bug #30390: fixed parse error. Alternative fix. 2005-09-06 19:00:55 +00:00
Dries Buytaert e03ce2f996 - Patch #28483 by Steven: JavaScript enabled uploading.
Comment from Steven: It does this by redirecting the submission of the form to a hidden <iframe> when you click "Attach" (we cannot submit data through Ajax directly because you cannot read file contents from JS for security reasons).  Once the file is submitted, the upload-section of the form is updated.  Things to note:

    * The feature degrades back to the current behaviour without JS.
    * If there are errors with the uploaded file (disallowed type, too big, ...), they are displayed at the top of the file attachments fieldset.
    * Though the hidden-iframe method sounds dirty, it's quite compact and is 100% implemented in .js files. The drupal.js api makes it a snap to use.
    * I included some minor improvements to the Drupal JS API and code.
    * I added an API drupal_call_js() to bridge the PHP/JS gap: it takes a function name and arguments, and outputs a <script> tag. The kicker is that it preserves the structure and type of arguments, so e.g. PHP associative arrays end up as objects in JS.
    * I also included a progressbar widget that I wrote for drumm's ongoing update.php work. It includes Ajax status updating/monitoring, but it is only used as a pure throbber in this patch. But as the code was already written and is going to be used in the near future, I left that part in. It's pretty small ;). If PHP supports ad-hoc upload info in the future like Ruby on Rails, we can implement that in 5 minutes.
2005-08-31 18:37:30 +00:00
Dries Buytaert 75fad91cf5 - Patch #22911 by Cvgbe: fixed table locking in PostgreSQL. You'll have to
use db_lock_table() and db_unlock_tables() for your code to be compatible.
2005-08-29 19:32:55 +00:00
Dries Buytaert 8ae8865abc - Patch #22911 by Cvgbe: fixed table locking in PostgreSQL. You'll have to
use db_lock_table() and db_unlock_tables() for your code to be compatible.
2005-08-29 19:17:17 +00:00
Dries Buytaert 34544d4dc0 - Unrolled patch #29103: always encode apostrophes. 2005-08-28 16:19:24 +00:00
Dries Buytaert c9fc300b1f - Patch #29785 by Chx: multiple node types were broken so we refactored
part of the node system!  If you have a module that implements node
  types, you'll have to udpate its CVS HEAD version.

  We replaced _node_name() and _node_types() by _node().  The new _node()
  hook let's you define one or more node types, including their names.
  The implementation of the _node() hook needs to:

   return array($type1 => array('name' => $name1, 'base' => $base1),
                $type2 => array('name' => $name2, 'base' => $base2));

  where $type is the node type, $name is the human readable name of the type
  and $base is used instead of <hook> for <hook>_load, <hook>_view, etc.

  For example, the story module's node hook looks like this:

    function story_node() {
      return array('story' => array('name' => t('story'), 'base' => 'story'));
    }

  The page module's node hook module like:

    function page_node() {
      return array('page' => array('name' => t('page'), 'base' => 'page'));
    }

  However, more complex node modules like the project module and the
  flexinode module can use the 'base' parameter to specify a different base.

  The project module implements two node types, proejcts and issues, so it
  can do:

    function project_node() {
      return array(
       array('project_project' => array('name' => t('project'), 'base' => 'project'),
       array('project_issue' => array('name' => t('issue'), 'base' => 'project_issue'));
    }

  In the flexinode module's case there can only one base ...

  This hook will simplify the CCK, and will make it easy (or easier) to merge
  the story and page module.

  In addition, node_list() became node_get_types().  In addition, we created
  the following functions: node_get_name($type) and node_get_base($type).
2005-08-28 15:29:34 +00:00
Dries Buytaert 7b8a409675 - Patch #29385 by chx: no ?> add end of files. 2005-08-25 21:14:17 +00:00
Dries Buytaert afeff189b8 - Bug #22911: PostgreSQL doesn't like "LOCK TABLES", but does like "LOCK TABLE". MySQL likes both. 2005-08-25 21:11:52 +00:00
Dries Buytaert 8dd4b46351 - Removed some debug code. 2005-08-25 20:56:32 +00:00
Dries Buytaert 405cb49a0b - Patch #25084 by Uwe: fixed code comments of error_handler(). 2005-08-23 05:19:44 +00:00
Dries Buytaert 6a4e6df36f - Patch #17592 by killes: improved access denied messages. 2005-08-22 20:39:43 +00:00
Dries Buytaert 7d9f29aca7 - Patch #28629 by chx: fixed handling of cookies in drupal_http_request(). 2005-08-22 20:24:53 +00:00
Dries Buytaert 75abab2451 - Patch #29274 by Jeremy: the "fuzzy cache" mechanism is supposed to enforce a minimum time before the cache table is flushed. Logical errors in the fuzzy cache implementation are leading to the cache table being flushed more frequently. Configuration is simplified by removing all references to "strict" and "loose" caches. Instead, the cache is either "disabled" or "enabled". Additionally, the site administrator can now configure the "minimum cache lifetime", the minimum amount of time cached data will remain cached. 2005-08-22 05:09:01 +00:00
Dries Buytaert a33b922fcc - Patch #29103 by chx: do not encode apostrophes. 2005-08-19 11:10:35 +00:00
Dries Buytaert 1836d3b365 - Patch #29002 by Neil: list_themes() currently returns all themes, not just enabled themes. This functionality is only used in one place- configuration for disabled themes. These configuration pages can be removed with a usability improvement since you shouldn't be able to configure things which are disabled. Additionally, this allows us to remove some extra logic in system_user(). And it it more consistent with the module API which only lists enabled modules.
list_themes() sorts the results by name. This uses filesort in MySQL since there aren't any indexes. Sorting is not used except in system_user(). This one use can be handled with ksort since it is not often executed (only on the user edit screen when multiple themes are enabled).

And a one line fix to remove a variable in system_user() is in here too.
2005-08-18 22:07:14 +00:00
Dries Buytaert b14ae54d62 - Patch #7458 by chx: fixed spaces. 2005-08-17 19:14:08 +00:00
Dries Buytaert d6bcdafeed - Patch #7458 by chx: merged the XML-RPC multicall support into xmlrpc() and use lazy-loading for the XML-RPC libraries.(performance improvement). 2005-08-17 15:01:14 +00:00
Steven Wittens e5a8977ac1 - Remove left-over commented out statement. 2005-08-17 01:25:07 +00:00
Dries Buytaert 26fa7c730f - Patch #16216 by nedjo: multiple block regions! 2005-08-16 18:06:18 +00:00
Dries Buytaert 6ef678e447 - Patch #28871 by Malthus: added missing quotes. 2005-08-15 11:47:09 +00:00
Dries Buytaert 30f95a331f - Patch #28861 by Malthus: fixed typo in XML-RPC backend. Missing $.
- Made chx the XML-RPC maintainer.
2005-08-14 22:27:40 +00:00
Dries Buytaert 00d21d5cee - Patch #28826 by chx: make xmlrpc_multicall working. 2005-08-14 09:53:40 +00:00
Dries Buytaert 31741b2c99 - Patch #25522 by Cvbge: _db_query() does not return FALSE in case of errors as stated in documentation. 2005-08-11 13:51:07 +00:00
Dries Buytaert b69b43d1ec - Patch #28482 by Uwe: add CVS $Id$ tags to all source files in Drupal core. This allows admins to know exactly which version of which files they use. In addition I want to use CVS $Id$ tags in my upcoming security.module to check for possible vulnerabilities. That's not possible if some files simply don't have $Id$s.
Note: I also (mostly) unified the tags to use the "// ID" form instead of "/* ID */", but that's more of a cosmetic issue. I'm not sure whether *.txt files and the stuff in themes/ need tags(?).
2005-08-11 12:57:41 +00:00
Dries Buytaert 9dec4430b2 - Patch #27980 by Neil Drumm: removed unused function. 2005-08-10 20:50:14 +00:00
Dries Buytaert 8c92c8d48b - Patch by Thomas: always use db abstraction layer 2005-08-10 20:42:54 +00:00
Steven Wittens 0c8d742283 - #28464: fix XMLRPC array vs. struct type-checking 2005-08-08 18:46:32 +00:00
Steven Wittens 0bf97bed03 - #27853: PHP notices. 2005-08-05 00:49:02 +00:00
Steven Wittens 8660655a9a - #27981: Add media parameter to theme_add_style 2005-08-05 00:22:03 +00:00
Dries Buytaert 7625a4e91a - Patch #27737 by Gerhard: format_name($object) -> theme('username', $object).
Usernames can now be themed; eg. an icon/avatar could be added.

  TODO: update contributed modules + update the migration docs.
2005-08-01 05:14:05 +00:00
Dries Buytaert 0a28c17cac - Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy(). Could result in black images. 2005-07-31 10:16:12 +00:00
Dries Buytaert 9e6373820a - Patch #27431 by Cvbge: add file size infomation to image_get_info() 2005-07-31 09:57:27 +00:00
Steven Wittens 897aae3e31 - #27846: Clean up dev_query code in db_query() 2005-07-30 18:01:51 +00:00
Steven Wittens c81bbf4aa1 - #24673: Fix deprecated usage of implode 2005-07-30 12:52:54 +00:00
Steven Wittens ab8377f02b - Fix braino in doxygen. 2005-07-29 19:07:17 +00:00
Steven Wittens 39aaf29d5c - Fix braino in doxygen. 2005-07-29 19:05:03 +00:00
Steven Wittens f8163b4fe3 - #11689: Fix locale import location cutting off thingie. 2005-07-29 18:56:58 +00:00
Steven Wittens aa2de74fa2 - #27624, #27614, #27627: dead code 2005-07-29 08:18:20 +00:00
Steven Wittens 3084036576 - #27231: (fix) Pretty db error screens. 2005-07-29 07:49:43 +00:00
Dries Buytaert 4103aada88 - Patch #27645 by Neil: refactor away module_load_all().
"This function is called in one place, so it can be rolled into the calling function. The return value isn't used so we can remove handling of it. This is executed for every non-cached page view, so the smaller code should save a smallish ammount of memory and time."
2005-07-29 07:09:30 +00:00
Steven Wittens 7aa20d30d8 - #27668: Replace deprecated tags/attributes with XHTML/CSS in locale.
- (#15121) Improve string cut-off for locale table
2005-07-29 06:50:10 +00:00
Steven Wittens 354e0c1f83 - #23651: Display referrer info with watchdog messages. 2005-07-29 04:12:19 +00:00
Steven Wittens d9d4b9bdab - #27231: Friendly DB error screens. 2005-07-27 01:58:43 +00:00
Steven Wittens 11a4aba9a6 - #26688: Add mbstring support to Drupal and clear up string handling fuzzies. 2005-07-25 20:40:35 +00:00
Steven Wittens dd2c576599 - #26688: Add mbstring support to Drupal and clear up string handling fuzzies. 2005-07-25 20:38:30 +00:00
Dries Buytaert ba1660168f - Patch #27003 by Neil: use named constants instead of strings 2005-07-23 05:57:27 +00:00
Dries Buytaert 31387c5a77 - Patch #26467 by drumm: make the destination persist across multiple pages
and fixed the node delete form to use a return destination.
2005-07-20 10:48:20 +00:00
Dries Buytaert ed3bf725bb - Patch #26391 by chx: replaced the old XML-RPC library with a smaller/better/working one. 2005-07-13 18:46:15 +00:00
Dries Buytaert 2c2d981e86 - Optionally show dots after truncation. TODO: update user.module to take advantage of this. 2005-07-06 14:20:11 +00:00
Dries Buytaert fac840fe86 - Patch by Bart: fixed update.php after bootstrap patch. 2005-07-03 10:09:08 +00:00
Dries Buytaert db3a2cc175 - Patch #11927 by stefan/Robin: improved theming of tablesort icons. 2005-07-02 12:32:09 +00:00
Dries Buytaert 2c10ff4b5f - Fixed problems with filter formats and problem with XML-RPC server. 2005-06-29 19:53:14 +00:00
Dries Buytaert 578d266d2f - Patch #25816 by Robert Douglass: removed extra load of boostrap.inc. 2005-06-27 18:38:46 +00:00
Dries Buytaert 58aee8cdad - Patch #25603 by Stefan: made the sizes of forms consistent.
TODO: document the defaults in the PHPdoc comments.
2005-06-27 18:33:33 +00:00
Dries Buytaert 5c8843704c - Patch #18213 by chx: boostrap system. Modified to work with HEAD, tidied
up the documentation a little.

  chx: can you double-check whether the global $conf variable is secure?
       (That is, make sure it can't be send using the URL or something.)
2005-06-22 20:19:58 +00:00
Dries Buytaert 4c77761efb - Patch #3962 by deekayen: improved error message when a blocked user attempts to login. 2005-06-21 18:21:08 +00:00
Dries Buytaert e550f84162 - Patch #16204 by Thox: committed the collapsible form elements patch.
NOTE: this patch works well, but the improved node edit form still has
        some rough edges.  It is important that we continue to improve
        usability.  Give it a try.
2005-06-21 09:45:45 +00:00
Dries Buytaert eb536bf5ec - Patch #24157 by chx/Robin/...: changed file_exists() to is_file() to fix several problems with modules using theimage toolkit. 2005-06-19 08:59:06 +00:00
Dries Buytaert abc16b1d6d - Patch #25067 by Thox: renamed 'light' and 'dark' to 'odd' and 'even'.
TODO: update the "Migrating themes from Drupal 4.6 to Drupal HEAD"-page in
        the Drupal handbook!
  TODO: update the themes in the contributions repository.
2005-06-19 08:50:46 +00:00
Dries Buytaert a7af266b6d - Patch #25143 by Robin: use count() instead of is_array() so we don't render code for empty arrays, and such you don't get warnings using PHP5. 2005-06-19 08:13:14 +00:00
Dries Buytaert 1474632aa0 - Patch #24135 by Moshe: made it possible to ban visitors based on hostname/IP. Banning visitors can either be done from the 'access control' pages, or directly from the statistics pages. This feature is very convenient to block badly behaving crawlers. 2005-06-07 18:54:37 +00:00
Steven Wittens 2f28cc0bcc - #24278: Emit correct XHTML <link> tag. 2005-06-05 19:10:53 +00:00
Dries Buytaert efdd76ad3d - Patch #22416: fixed typo that prevented menu item descriptions from showing up in links. 2005-06-05 09:47:13 +00:00
Dries Buytaert 12ea785baf - Patch #24141: fix XML UTF-8 bom issue with PHP5.
Workaround for the fact that PHP5 cannot parse UTF-8 encoded XML feeds
  that start with the so-called "byte order mark".
2005-06-04 14:13:43 +00:00
Steven Wittens a597354bcb - Code cleanup: improve format_plural usage, add some missing placeholder/check calls, and introduce API for <link> tags. 2005-05-31 21:14:27 +00:00
Steven Wittens 025bca28aa - Forgot about tablesort dependency on pager. 2005-05-31 19:54:31 +00:00
Steven Wittens b5ece96886 - Fixing charset in mime_header_encode() 2005-05-30 18:08:49 +00:00
Steven Wittens 82e606f7ab - #23700: Fix some broken t()'s in common.inc 2005-05-26 23:39:25 +00:00
Dries Buytaert 0250938e2b - Patch #17028 by Ber: theme xml_icon should allow inline XML icons. 2005-05-26 19:08:14 +00:00
Steven Wittens 67ebcfd084 - Mime_header_encode() was buggy. Each chunk of encoded text must be
a valid UTF-8 string, beginning and ending on a character boundary.
2005-05-25 06:28:59 +00:00
Steven Wittens 6be2c61896 - #20809: User-configurable, per-theme, optional favicons. 2005-05-25 06:03:18 +00:00
Steven Wittens 753bc588d9 - Fix mistakes in pager patch. 2005-05-25 05:42:05 +00:00
Steven Wittens 7ecb1b7c9c - #23387: form() should respect block-level elements 2005-05-25 04:18:54 +00:00
Steven Wittens a52bb9b1dd - #23516: Remove ][ from form item id's. 2005-05-25 03:50:25 +00:00
Steven Wittens 3598cbb988 - #23495: Clean up pager code. Now uses $page instead of $from, and counts pages, not items. 2005-05-25 03:29:06 +00:00
Dries Buytaert 8aba3a430b - Patch #23530 by Thox/Robin: removed the wrap="virtual" attribute from textareas. According to Thox this is no longer neccessary. Makes textareas validate as XHTML. 2005-05-24 20:38:00 +00:00
Steven Wittens 58bddf8abc * cue Star Wars theme tune *
Return of the JavaScript!

- #22519: form_autocomplete(): Ajax based autocompletion. Currently used for user names and folksonomy tags.
2005-05-24 06:00:22 +00:00
Dries Buytaert 7dcb9086f8 - Patch #23465 by Gerhard: tiny performance improvement to db_query_range(). 2005-05-23 21:14:01 +00:00
Dries Buytaert a7bced320e - Patch #18663 by chx: fix empty form elements. 2005-05-21 18:33:59 +00:00
Dries Buytaert cdec2f7e3e - Patch #16303 by Gerhard: fixed some warnings. 2005-05-21 11:33:03 +00:00
Dries Buytaert d77cf05823 - Patch #23211 by Neil: better formatting of sizes in format_size(). 2005-05-20 11:31:16 +00:00
Steven Wittens 5154c3aca4 - Fixing some plain/url check calls. 2005-05-18 21:12:17 +00:00
Dries Buytaert c3cf0622b6 - Patch by Drumm: one more attempt at fixing file_create_path(). 2005-05-18 05:17:11 +00:00
Dries Buytaert fa2469c1dd - Patch #23028 by chx: fixed file_check_location() problems. 2005-05-17 20:49:54 +00:00
Dries Buytaert b0c9983190 - Patch by James/Gerhard: made file_create_path() more robust. 2005-05-14 21:05:08 +00:00
Dries Buytaert ae98abc15b - Patch #22652 by Stefan: improved PHPdoc of drupal_set_message(). 2005-05-14 18:32:22 +00:00
Dries Buytaert 139ef4027c - Patch #22035 by mathias/mikeryan: improved performance of path aliases. 2005-05-14 09:23:47 +00:00
Dries Buytaert f2d200f51e - Patch #19442 by chx: cache_set sometimes failed.
TODO: this patch lets us clean up more code in code!  Let's have a look
        at this ...
2005-05-12 14:36:43 +00:00
Dries Buytaert 2b7f504dc8 - Added the ability to track page generation times in the statistics module.
(Made some improvements as per the suggestions in the issue.)

- Added extended timer implementation.
2005-05-12 11:21:35 +00:00
Dries Buytaert 55dc257b77 - Patch #22307 by Robert: added missing ')' 2005-05-10 19:59:45 +00:00
Dries Buytaert 39d0fe9a38 - User module improvements: added an 'access' column to the users-table to
keep track of the user's last access. In turn, this allowed me to:

  1. Optimize the "Who's online" block.  On drupal.org, the "Who's online"
     block requires 32 SQL queries.  With this patch, only 2 queries are
     left (eliminated 30 SQL queries), and one of the two remaining queries
     became appr. 20 times faster.

  2. Correct the "Last access" column in the user administration overview
     table.  The presented data was not accurate, which led to the column
     being removed.  You can now sort users by 'last access'.
2005-05-07 11:39:54 +00:00
Steven Wittens 89ae34de47 - #19621: More sensible status messages for forum admin ("created forum" instead of "created term"). 2005-05-07 01:48:06 +00:00
Dries Buytaert 4d95035518 - Patch #22118 by Robin Monks: made file_transfer() more robust. 2005-05-06 09:31:45 +00:00
Dries Buytaert 03250bd3e3 - Patch #21397 by jjeff: fixed behavior of theme_image with regard to attributes. 2005-05-06 09:01:46 +00:00
Dries Buytaert 2debcfb1ef - Patch #15595 by Stefan and Djun: improved status messages.
TODO: we should write down a couple guidelines for these document them in
        the PHPDoc code of drupal_set_message()!  .
2005-05-05 22:22:46 +00:00
Dries Buytaert 77f6f233f8 - Modified patch #21980 by willmoy: made form_group() accept HTML attributes. 2005-05-05 09:07:08 +00:00
Dries Buytaert 6658273b36 - Patch #21855 by TDobes: the recent commit of phptemplate caused a number of problems for non-phptemplate themes. A patch is attached to address these issues.
Changes include:
    * parsing of the primary/secondary links has been moved out of phptemplate and into theme_get_setting.
    * unnecessary and XHTML-invalidating duplicate div#help removed from themes/bluemarine/page.tpl.php (this is already generated by theme_help)
    * weird generation of the "edit primary/secondary links" messages removed from bluemarine and placed in theme.inc
    * unnecessary changes to themes/bluemarine/style.css rolled back (the phptemplate bluemarine had an older version of style.css than the one in core)
    * chameleon updated to work with new link scheme (passes links through theme_links)
2005-05-05 07:35:58 +00:00
Dries Buytaert e274f97c87 - Removed the Xtemplate engine and added the PHPTemplate engine.
- Converted the Bluemarine theme from XTemplate to PHPTemplate.
- Moved the the Pushbutton theme and the Xtemplate engine to the contributions repository.
2005-05-04 18:12:18 +00:00
Dries Buytaert a10eac3291 - Patch #21517 by Stefan and TDobes: theme system improvements. 2005-04-30 17:47:57 +00:00
Steven Wittens ea36711d11 - #20910: Centralize print theme page fixes 2005-04-28 19:23:19 +00:00
Dries Buytaert 6fd73703d9 - Patch #21249 by patryk: made SQL query work with PostgreSQL by correcting a 'GROUP BY'-clause. 2005-04-25 17:57:03 +00:00
Dries Buytaert a76a1e1f3f - Patch 20910 by chx: centralize print theme page. 2005-04-24 16:34:36 +00:00
Dries Buytaert 79a5700c57 - Usability improvement: made the markers easier to understand. 2005-04-24 16:22:30 +00:00
Dries Buytaert fa40f24460 - Patch #20235 by chx: fixed problem with db_set_active(). 2005-04-14 18:50:16 +00:00
Dries Buytaert 495a03ae9d - Patch #12794 by assimonds: make sure the node module is optional. 2005-04-13 17:59:39 +00:00
Dries Buytaert b43a782b61 - Removed some dead code. 2005-04-12 16:55:11 +00:00
Steven Wittens 23bccfd1c8 - #4166: Respect 'access userlist' permission for profile data. 2005-04-11 22:48:27 +00:00
Dries Buytaert e3d62d907b - Patch #19298 by Jeremy: loose caching!
Drupal's existing caching mechanism doesn't perform well on highly dynamic websites in which the cache is flushed frequently. One example is a site that is under attack by a spambot that is posting spam comments every few seconds, causing all cached pages to be flushed every few seconds.  Loose caching immediately flushes the cache only for specific users who have modified cached data (whether or not they are logged in), delaying the flushing of data for other users by several minutes.

(I rewrote the help text a bit and made minor changes to the code comments.)
2005-04-11 19:05:52 +00:00
Steven Wittens 230db1039a - Missing check_url() in form(). 2005-04-10 10:22:40 +00:00
Dries Buytaert 47f1f7f90a - Patch #19609 by Daniel: fix problem with database prefixing 2005-04-08 14:24:03 +00:00
Dries Buytaert 67f7d6947e - Fixed bug #19868: undefined variable. 2005-04-08 11:24:46 +00:00
Steven Wittens 0f41706acc - #19874: Fix aggregator escaping after check_plain bug
- Fix bug in decode_entities() with double-escaped entities.
2005-04-07 22:46:55 +00:00
Dries Buytaert 6ba8f32cca - Patch #13503 by chx: made the menu cache locale aware. 2005-04-07 20:00:48 +00:00
Dries Buytaert 97bfa01725 - Patch #18828 by me, jbond and TDobes: moves the textarea hook for 'pre' between the title and the textarea. This makes it easier for simply textarea enhancements like quicktags to add a toolbar just above the textarea. 2005-04-06 07:43:10 +00:00
Dries Buytaert 18e852e4e7 - Patch #19933 by willmoy: stop output buffering once the page has been rendered. 2005-04-05 19:00:24 +00:00
Dries Buytaert 69a066c4cd - Patch #19895 by Moshe: currently modules can inadvertently load all other modules during the bootstrap. this is easy to do by calling a node_load() or module_invoke_all(). this degrades performance for anonymous users when caching is enabled. With this patch, the module writer will see an php error like "Call to undefined function: drupal_set_html_head()" if this is attempted. basically, unavailable functions are actually reported as unavailable. 2005-04-03 08:03:18 +00:00
Steven Wittens d48351a027 - #19873: drupal_specialchars -> check_plain 2005-04-02 18:22:17 +00:00
Dries Buytaert 7bdcba1720 - Patch #19739 by Uwe: corrected many typo's in the documentation and code comments 2005-03-31 21:18:08 +00:00
Steven Wittens be14203534 - #18817: Clean up plain-text checking (see drupal-devel!) 2005-03-31 09:25:33 +00:00
Dries Buytaert 99233a9c99 - Patch #19590 by Moshe: lazy initialization of the theme system. Improves
performance of pages that don't need the theme system (such as RSS feeds)
  and makes it easier to set a custom theme.
2005-03-29 21:01:47 +00:00
Steven Wittens ab4261dc31 - #19517: Fix GD2 toolkit error.
- Tweak code style.
2005-03-29 00:01:23 +00:00
Dries Buytaert f514f55112 - Patch #18700 by Stefan and James: removed GD1 calls, improved error/status reporting, etc. 2005-03-23 20:26:21 +00:00
Dries Buytaert 6957d7863d - Patch #19212 by chx: removed unused variables, and fixed the error reporting
in form_file().
2005-03-21 19:26:47 +00:00
Steven Wittens f60da5b071 - #19130: Handle trailing dot in hostname when scanning for config. 2005-03-19 01:24:18 +00:00
Steven Wittens 98c2d5b2b8 - #5900: Fix browser caching issues. 2005-03-18 09:13:55 +00:00