Commit Graph

347 Commits (25a709a1f30626ebaaa396ca3e2c55d33b5ec7f6)

Author SHA1 Message Date
Dries Buytaert fed7e664de - Patch #6682 by jhriggs: added form_checkboxes(), much like form_radios()
and updated some modules to take advantage of it.
2004-05-15 15:42:47 +00:00
Steven Wittens 9b106e85fe Adding support for <optgroup> through form_select. See the PHPdoc for usage. 2004-05-05 15:58:26 +00:00
Steven Wittens 0f1f45c710 Standard text/html HTTP Content-Type was not cached, causing encoding issues on some server configurations. 2004-05-03 11:53:59 +00:00
Dries Buytaert b3265bcb86 - Patch #6887 by drumm: fixed drupal_http_request 2004-04-27 18:17:17 +00:00
Dries Buytaert 278c2d52e9 - Patch #7403 by jhriggs: the required-form-items patch that hit HEAD a few days back has an erroneous assignment in form_radios(). 2004-04-26 21:57:02 +00:00
Dries Buytaert bab922715d - Bugfix: strip all HTML from the feed description. 2004-04-24 16:25:31 +00:00
Dries Buytaert dc8a68ea28 - Patch #6791: mark required fields. Modified patch by Michelangelo. 2004-04-24 15:39:31 +00:00
Dries Buytaert 01e76e374f - Patch #6887 by Gerhard: fget -> fread for sake of compatibility. 2004-04-21 19:43:23 +00:00
Dries Buytaert 7231c88a32 - Added support for 403 handling. Patch by JonBob. As a side benefit,
administrators will be able to define a custom 403 page, just as they
  can define 404 pages now.

  This needs to be documented in the "Changes since / migrating to ..."
  pages.
2004-04-21 13:56:38 +00:00
Steven Wittens a083daf841 Truncate UTF-8 patch. Introduced a new function truncate_utf8() for chopping off strings at unsure locations, without risking incomplete UTF-8 data. 2004-04-15 14:07:08 +00:00
Dries Buytaert be230467fd - Patch #6947 by Ax: fixed a Doxygen warning, fixed some uninitialized varables.
(I'm back from vacation.)
2004-04-12 08:27:57 +00:00
Dries Buytaert b9419fbcd6 - Partial patch 6680 by Brian: fixed invalid XHTML in search result page. 2004-03-31 22:50:23 +00:00
Dries Buytaert f3d419b74e - Fixed bug #6697: improved the URL validation function 2004-03-27 09:32:12 +00:00
Dries Buytaert a4a785e7a3 - Patch #6517 by kika: drupal_http_request() fails to open feed because on PHP 4.1.2. Also updated file.inc. 2004-03-24 18:58:36 +00:00
Dries Buytaert 6bd3c11a40 - Ported patch #6470 by Brian: fixed more XHTML erros related to multiple selects. 2004-03-24 06:01:43 +00:00
Dries Buytaert 93cf70d72e - Profile module improvements: added a URL-type field to the profile module.
We can use this for the 'URL of homepage' field on drupal.org.  URL fields
  are rendered as links and are being validated.
2004-03-21 10:28:10 +00:00
Dries Buytaert f10cca1182 - Patch 6345 by Chris: the 4th argument of form() is misnamed and used 0 as default value 2004-03-11 05:28:51 +00:00
Dries Buytaert 3ab169fc8b - Fixed bug #6345: drupal_attributes() adds redundant space. 2004-03-10 19:32:37 +00:00
Dries Buytaert 11988bcd92 - Improved drupal_not_found() 2004-03-08 18:35:04 +00:00
Dries Buytaert 0f980c24bc - Removed broken throttle. 2004-03-01 19:45:33 +00:00
Steven Wittens eadfa19239 Improved <label> patch: got rid of ID's by implicit association, and made radio/check labels non-bold again. 2004-02-24 20:22:45 +00:00
Dries Buytaert 5b5f148ad4 - Patch by Steven: added <label>s to checkboxes and radio buttons. 2004-02-23 07:28:18 +00:00
Kjartan Mannes 54c2aa8c4d - Fixed bug #5977: Date translation screwed.
- Fixed '\n' => "\n".
2004-02-21 14:08:09 +00:00
Steven Wittens e45b242468 - Added a short snippet to drupal_xml_parser_create() which invokes iconv() to convert unsupported encodings. 2004-02-17 23:36:22 +00:00
Dries Buytaert b5c18e8a17 - Patch 5592 by Goba: introduced a new function, drupal_map_assoc(). 2004-02-12 19:37:04 +00:00
Dries Buytaert f137b26979 - Patch 4902 by Goba:
+ only adds an optional parameter to url() and l(), so individual links
    can be set to be absolute
  + modifies drupal_goto() to accept the parameters of url() without the
    $absolute parameter, so cleaner invocations can be used
  + rework of some code in node_feed, making it much better to look at
    (the current code uses foreach with an immediate brake to get the first
    key of the associative array, geeeeez)
  + added xml:base to the rss tag generated by node_feed()
  + set all user mail URLs to be absolute
  + fix a small fragmented URL in user.module
2004-02-11 19:21:14 +00:00
Kjartan Mannes 97c2aa2bda - Modified format_date() to handle timezones properly. 2004-02-08 21:42:59 +00:00
Dries Buytaert ebba90fe68 - Patch #5708 by Goba: moved the URL aliasing functions to a common place, so
they will be part of the same documentation group, as well as created a new
  'formatting functions' group and added a lot of docs for them.  Also fixed
  some small errors reported by the doxygen parser.
2004-02-08 17:12:44 +00:00
Dries Buytaert 0db96f196a - Subset of patch 5613 by Goba: fixed some translation issues. 2004-02-05 22:58:59 +00:00
Dries Buytaert 928435a565 - Fixed bug 5532: search broken if any subsearch returns without results.
Patch by Goba.
2004-02-01 19:07:36 +00:00
Dries Buytaert c8daca07d2 - Patch #5448 by pz: removed code duplication from theme.inc. 2004-01-29 06:47:19 +00:00
Dries Buytaert 02c622dea1 - Patch 4332 by Goba: eliminate compose tips module. 2004-01-27 22:10:47 +00:00
Dries Buytaert 66190b1787 - Patch #5393 by Goba: changes the search hook return value, and requires an array
containing two elements, the first being the requested title, and the second being
  the result list. Advantages:
    * Cleaner search code in common.inc
    * Po extraction is possible and works fine
    * No hardcoded exceptions for node and comment modules, since any module can
      return results in order of relevance (or another order)
2004-01-26 19:22:22 +00:00
Dries Buytaert cdfa6b8e4d - Improvement #5388: removed unnecessary SQL queries when no URL aliases are defined. 2004-01-25 09:09:00 +00:00
Dries Buytaert c6be16d9ad - Patch #5351 by Kyber: fixed bug in field_get(). 2004-01-23 15:31:29 +00:00
Dries Buytaert fd86977cdd - Added missing permission check. Patch by Ax.
- Added a $granularity field to format_interval().
2004-01-21 06:40:57 +00:00
Dries Buytaert 3714827685 - Fixed bug 5247: active link marking invalidates HTML. Patch by Goba. 2004-01-19 21:57:42 +00:00
Dries Buytaert 1c3a303253 - Fixed incomplete input checking. 2004-01-17 23:19:02 +00:00
Dries Buytaert c37cfb0183 - Correction: I accidentically removed some $base_urls. 2004-01-14 22:41:15 +00:00
Dries Buytaert 6fc2070a22 Patch 5114 by Kjartan:
- Adds drupal_set_header() and drupal_get_headers().
 - Cache now stores custom headers.
 - Replace theme_head() with drupal_get_html_head(), added drupal_set_html_head().
 - Added RSS autodiscover links to node, blog and taxonomy pages.
2004-01-14 22:30:09 +00:00
Dries Buytaert 5fa33b2962 - Made l() add 'class="active"' to the active/current URL. 2004-01-12 22:53:43 +00:00
Dries Buytaert a8b8c247db - Patch #5021: clean up URLs in _help texts. Patch by UnConeD. 2004-01-11 20:31:26 +00:00
Steven Wittens f78cb9932b - Fixed ability to override default HTTP headers in drupal_http_request().
- Fixed issue with drupal_get_path_alias(): should return false for non-aliased URLs.
2004-01-07 20:43:26 +00:00
Dries Buytaert 94f6e94ffd - Many excellent news aggregator improvements by Kjartan:
+ Added drupal_http_request().
    + Replaced rssfeeds with OPML feed subscription list.
    + Added support for pubDate.
    + Added support for conditional gets using ETag and Last-Modified.
2004-01-07 19:52:10 +00:00
Kjartan Mannes 0d7e205062 - New and updated doxygen comments. 2004-01-06 19:52:14 +00:00
Steven Wittens b817bdb302 - Improved XML encoding fix. There is now a function drupal_xml_parser_create():
/**
 * Wrapper around xml_parser_create() which extracts the encoding from the XML
 * data first and sets the output encoding to UTF-8. This function should be
 * used instead of xml_parser_create(), because PHP's XML parser doesn't check
 * the input encoding itself.
 *
 * This is also where unsupported encodings should be converted.
 * Callers should take this into account: $data might have been changed after
 * the call.
 *
 * @param $data The XML data which will be parsed later.
 */
2004-01-06 12:09:42 +00:00
Steven Wittens c2151b5248 Committed filter separation patch: all filter-related things are now in filter.module (which is a required module).
To do this cleanly, I reorganised some bits of system.module: there is now a generic handler available for simple variable-get/set based configuration pages. Look at filter_admin() or system_view() for example usage.

(based on the patch by Goba)
2004-01-05 19:19:05 +00:00
Dries Buytaert daaeef0e8c - Partial patch #4927: mass URL aliasing by Goba. 2004-01-05 18:23:21 +00:00
Dries Buytaert 604064b523 - Patch #4858: search module did not remember the search filter. Patch by
Kjartan.
2004-01-02 12:15:37 +00:00
Dries Buytaert e8c7d2e092 - Made it possible to set and display multiple status messages. Modified patch by
Kjartan.
2003-12-30 12:10:51 +00:00