Commit Graph

433 Commits (7ae4e0b8469289b9b1bd05f45d9392fd80df5e9c)

Author SHA1 Message Date
Dries Buytaert 1b291a2917 - Patch #18260 by Ber, m3averck et al: allow overriding of links returned by modules 2006-05-18 14:58:57 +00:00
Neil Drumm 9d8799f6c4 Reverting #53653, that function actually is called via a module_invoke() in node.module. 2006-05-16 06:50:21 +00:00
Neil Drumm 0652e5b5cc #53653 by me, remove an unused function. 2006-05-16 02:22:58 +00:00
Dries Buytaert 5b3f42372f - Patch #62554 by webchick: removed some cruft. 2006-05-09 14:16:49 +00:00
Dries Buytaert 823673a196 - Patch #62332 by Zen: added missing add term link on admin/taxonomy page and got rid of some crufty code. 2006-05-08 15:12:25 +00:00
Neil Drumm 926cf39cf5 #47042 by RobertDouglas, Expose terms string parsing as a helper function to cut down on copy and paste code in contrib modules 2006-05-07 03:33:03 +00:00
Neil Drumm 9cff02e91b #61802 by Zen, Double spaced sentences clean up 2006-05-07 00:08:36 +00:00
Neil Drumm d6b538eff8 Forward port from 4.7
#60934, The vocabulary list screen needs an 'add term' operation, patch by chx
2006-04-30 00:39:11 +00:00
Gerhard Killesreiter f16b6b2901 #60621, typo orm_set_error("taxonomy[tags][$vid", patch by chx 2006-04-28 12:02:18 +00:00
Steven Wittens 954cbf7c65 #60729: Index taxonomy terms with nodes 2006-04-27 22:20:51 +00:00
Gerhard Killesreiter 8dfca7c806 #60265, module field for vocabularies reverts to taxonomy, patch by naquah 2006-04-25 11:51:51 +00:00
Gerhard Killesreiter 99e7c0ec7c #48526, fix taxonomy for blogapi. Patch by walkah 2006-04-11 17:57:37 +00:00
Steven Wittens 9794b5538e - #55898: Generic, permissive admin XSS/HTML filtering for mission/footer/...
- Clean up some raw output
2006-04-07 15:32:17 +00:00
Steven Wittens be0b774cbc - #57523: Make taxonomy delete vocabulary consistent with other taxonomy hook ops 2006-04-06 04:21:12 +00:00
Steven Wittens 4821200689 #57415: Replace drupal_implode_autocomplete() by drupal_to_js() 2006-04-06 02:41:48 +00:00
Gerhard Killesreiter 3c795c554f #28625, further form API conversion of taxonomy.module and small bugfix in forms API, patch by profix898 and chx 2006-03-26 16:59:17 +00:00
Gerhard Killesreiter 02ad2cfea2 #53351, remove preselection of "none", patch by myself. 2006-03-24 14:49:45 +00:00
Gerhard Killesreiter d11c07502d #54910, Forum and taxonomy term delete work only superficially, patch by Zen 2006-03-23 21:46:35 +00:00
Dries Buytaert 718b88e54f - Patch #53351 by Zen, tim et al: problem with unchecked taxonomy lists. 2006-03-11 13:47:51 +00:00
Dries Buytaert 7add598ee2 - Patch #51850 by chx, webchick et al: fixed various problems with db_rewrite_sql, made db_rewrite_sql slightly more robust. 2006-03-08 15:13:20 +00:00
Dries Buytaert 403bc4ab49 - Patch #51871 by merlinofchaos/zen: convert taxonomy.module to new form API so forms can be themed/altered properly. 2006-03-02 08:27:59 +00:00
Dries Buytaert 10dc538cf1 - Patch #51531 by Zen: renamed a link for clarity. 2006-02-27 17:01:37 +00:00
Dries Buytaert 3603fe1bd8 - Patch #49912: www.drupal.org -> drupal.org. (Today's critical bugfix #5.) 2006-02-21 18:46:54 +00:00
Dries Buytaert c3a0311b04 - Patch #39672 by Morbus: fixed problem with help texts of taxonomy forms. 2006-02-20 16:48:46 +00:00
Dries Buytaert a94b87aa3a - Patch #46705 by killes: use += instead of array_merge(). 2006-02-20 16:39:23 +00:00
Dries Buytaert 9004bed664 - Patch #47899 by Zen: fixed weight issues with freetagging vocabulary. 2006-02-09 08:28:28 +00:00
Dries Buytaert 15ff8c8e32 - Patch #46827 by wulff: fixed incorrect links. 2006-01-29 07:50:45 +00:00
Dries Buytaert 7946eca135 - Patch #35926 by asimmonds: make required vocabularies actually required. 2006-01-26 08:33:20 +00:00
Dries Buytaert 10d7f7731b - Patch #45281 by chx: made categories with forum topics work again. 2006-01-19 17:55:54 +00:00
Dries Buytaert 4c1522e962 - Patch #45336 by Ber: bugfix: removed obsolete check_plain() check causing & problems. 2006-01-19 09:26:15 +00:00
Dries Buytaert a50eb34bda - Patch #44381 by gerhard: improved consistency of API. Always pass an array. 2006-01-17 09:23:38 +00:00
Dries Buytaert 67778c896e - Patch #39672 by Ber: made the help text opion work for free tagging terms. 2006-01-10 19:56:19 +00:00
Dries Buytaert 92acb92699 - Patch #33747 by Ber and Moshe: bugfix + code improvement: clean up some of the taxonomy loading code. 2006-01-10 12:35:20 +00:00
Dries Buytaert 16e9b4d0c7 - Patch #42937 by chx: bugfix: added missing db_rewrite_sql() in taxonomy_node_get_terms. 2006-01-08 12:28:27 +00:00
Dries Buytaert ea2d791095 - Patch 41169 by Chris: got rid of expensvie object 2 array casts. 2005-12-31 10:48:56 +00:00
Steven Wittens 79a193a2d2 - #42234: Use standardized feed icon for RSS 2005-12-29 04:46:40 +00:00
Steven Wittens b43fa0f9da - #41744: global urlencode() for menu paths 2005-12-22 22:58:12 +00:00
Dries Buytaert bd4fe6ede9 - Patch #40813: Taxonomy forms should be in a fieldset. 2005-12-16 06:23:46 +00:00
Dries Buytaert 922a46d281 - Patch #34920 by Morbus/webchick/tangent: fixed order of form fields. 2005-12-15 16:24:40 +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 32d9af4916 - Patch #39598 by Gerhard: fixed problem with taxonomy terms not being selected. 2005-12-06 12:20:24 +00:00
Dries Buytaert ada8f8976f - Patch #35125 by zoo33: made the taxonomy.module work with PostgreSQL. 2005-12-05 13:15:42 +00:00
Dries Buytaert 28fdb3975e - Patch #39778 by chx: obliterate nodeapi op form in favor of the forms API's way of doing things. Tested with help from webchick. 2005-12-05 09:11:33 +00:00
Dries Buytaert 236da7af05 - Patch #31151: adding taxonomy terms has no feedback 2005-11-29 17:41:27 +00:00
Dries Buytaert 42518af257 - Bring back taxonomy_form_all(). 2005-11-28 12:24:58 +00:00
Dries Buytaert 679649baaa - Patch #39003 by Jaza: remove taxnomy_form_all(). 2005-11-27 09:26:46 +00:00
Dries Buytaert d9dc551612 - Patch #29151 by fgm: simplified SQL query in taxonomy_node_form(). 2005-11-23 08:27:55 +00:00
Dries Buytaert aeed4cd8e4 - Patch #35644 by webchick: forms API simplificiations. 2005-11-12 11:26:16 +00:00
Steven Wittens c2fcb6d519 #30993: Make taxonomy selector widget themable 2005-11-12 04:31:56 +00:00
Dries Buytaert 42e2eb0d2a - Patch #35178 by Robert Douglas: add title attribute to taxonomy links - use term description as text. 2005-11-08 15:17:34 +00:00
Dries Buytaert a8b218827a - Patch #26139 by webchick / Kieran / documentation team: improved admin help of core modules! / 2005-11-01 10:17:34 +00:00
Steven Wittens 6777fdb193 - #26583: Make forum taxonomy links redirect to forums rather than taxonomy pages. 2005-10-21 11:12:46 +00:00
Steven Wittens 468b9e8e5a - Code style 2005-10-19 09:46:22 +00:00
Dries Buytaert 782d5c98c9 - Patch #33752 by leafish_paul / adrian: added missing apostrophes to the form API code. 2005-10-18 14:40:00 +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 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 da316273bd - Patch #31014 by chx, zack: on taxonomy overview pages, make term names link to their respective taxonomy/term/(x) page. 2005-09-19 15:04:11 +00:00
Dries Buytaert 1dc53d9761 - Patch #3986 by James (and Boris :)):consolidated all feed-related settings in one place.
* adds a "feed settings" section to admin/settings where 2 new settings are introduced:
* number of items per feed
* default length of feed descriptions (title only, teaser, full)
* patches all of core to obey the above - including the new aggregator (out) feeds
* adds support for adding namespaces in _nodeapi('rss item') - which means things like iTunes RSS and yahoo's media rss can be implemented by the appropriate modules (i.e. audio.module)
* includes some additional info in the default node feed - specifically the element (links directly to comments) - and dc:creator - to show node author information.
2005-09-18 10:37:57 +00:00
Dries Buytaert 074cafa269 - Patch #30956 by Cvbge: PostgreSQL fix: taxonomy_save_vocabulary() should check for 'tags' not set. 2005-09-12 21:55:41 +00:00
Dries Buytaert 8f71d8990e - Patch #16452 by chx: allow modules to rewrite taxonomy-related SQL queries much
like we do with node-related SQL queries.

  (chx promised to document this, check his documentation as soon it is available.)
2005-08-28 16:30:50 +00:00
Dries Buytaert 8f32c39db2 - Patch #29102 by chx: fixed bug in forum module and tidied up the taxonomy_save_*() functions. 2005-08-28 15:58:52 +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 078c99ca5d - Patch #21658 by Uwe: fixed broken link in help text. 2005-08-24 15:40:43 +00:00
Steven Wittens f99d532111 - #16440: Allow taxonomy vocabulary and term forms to be extended. 2005-07-25 04:55:37 +00:00
Dries Buytaert 103346f2f4 - Patch #26683 by matteo: added missing DISTINCT()s 2005-07-19 21:31:09 +00:00
Dries Buytaert b6cdead164 - Removed <strong>s 2005-07-19 18:08:03 +00:00
Dries Buytaert a2656ab39b - Misplaced backet 2005-07-19 17:09:55 +00:00
Dries Buytaert 1d9c0cd65f - Modified patch #20505 by Morbus: fixed scalability issues with terms, tried to create a better distinction between vocabularies and terms, fixed problem with term pager (temporary fix). 2005-07-19 17:00:26 +00:00
Dries Buytaert 87e5399a9e - Patch #19621 by Morbus/drumm: fixed bugs with taxonomy_save_xxx() functions.
TODO: update image module too?
2005-07-18 19:31:16 +00:00
Dries Buytaert 2895357de0 - Modified patch #25031 by chx: modified node_list() so one has both the module and its type.
TODO: update migration page in handbook.
2005-07-17 20:57:43 +00:00
Dries Buytaert 160a1e0ef8 - Patch #25634 by chx: simplified node_load(). 2005-07-17 18:29:32 +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 8436082fe1 - Removing some whitespace 2005-06-06 14:07:04 +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 34421b5d39 - #20963: Make taxonomy_select_nodes() more useful to other modules, by allowing custom sorting orders. 2005-05-25 04:04:59 +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 2b1664bc66 - Patch #16452 by chx: made it possible to rewrite some taxonomy queries. 2005-05-21 21:32:54 +00:00
Dries Buytaert a31b1b3876 - Patch #7684 by MrRoot/grohk: order taxonomy terms by vocabulary weight, then term weight. 2005-05-21 12:15:54 +00:00
Dries Buytaert 4bedad588c - Patch #22469 by mathias: added missing DISTINCT()s to two SQL queries. 2005-05-21 11:35:45 +00:00
Dries Buytaert 85cbb1be6e - Modified patch #22878 by Junyor: made all terms on the taxonomy overview page links to the taxonomy term list page. 2005-05-14 21:40:42 +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 1261364dd1 - Patch #21751 by crunchywhelch: added missing check_plain() when emitting the <category>-tag in RSS feeds. 2005-05-02 08:21:41 +00:00
Dries Buytaert a76a1e1f3f - Patch 20910 by chx: centralize print theme page. 2005-04-24 16:34:36 +00:00
Dries Buytaert 3bbf1d39e2 - Patch #20561 by Morbus: free tagging doesn't support taxonomy_node_form $name. 2005-04-16 11:49:27 +00:00
Dries Buytaert 1c83d51741 - Patch by Adrian: postgresql fixes 2005-04-14 19:37:11 +00:00
Dries Buytaert dea2bd2123 - Modified patch by mikeryan: make it possible to administer system vocabularies. 2005-04-12 19:18:57 +00:00
Dries Buytaert 444cf78ee5 - Patch by Morbus: added missing taxonomy_node_delete(). 2005-04-12 05:09:13 +00:00
Dries Buytaert bf9d98d664 - Patch #19697 by Morbus: FOLKSONOMY.
This patch adds folksonomy support to Drupal (named internally as "Free tagging"). In a nutshell, the core difference is the input method: unlike normal taxonomies which are administratively controlled, a "free tagging" vocabulary allows tag creation when the node is submitted. It does this through an text input box, as opposed to a dropdown or selectbox. This patch:

    * Removes the useless "Preview form" of a vocabulary.
    * Alters the vocabulary table to include a new "tags" column.
    * Adds a new "Free tagging" preference on vocabulary creation/editing.
    * Modifies the vocabulary overview to support pagers for free tagging vocabs.

The new code integrates tightly with the existing taxonomy code. The only additional processing occurs on node save and edit, where we parse through the tags associated with a node. All other display (and thus, code) remains the same.
2005-04-08 14:59:14 +00:00
Dries Buytaert 7d3d5532df - Fixed warning. 2005-04-07 20:09:36 +00:00
Steven Wittens 0f79c1e946 - Improve recursion in taxonomy_get_tree() (Morbus) 2005-04-06 04:48:39 +00:00
Dries Buytaert 9660db2c4e - Patch #19888 by jhriggs: fixed terms getting lost upon preview. 2005-04-03 09:27:01 +00:00
Dries Buytaert a3e9b35afc - Patch #19451 by JonBob: improved consistency of module descriptions. We should write guidelines for this -- maybe in the PHPDoc code of the _help hook. 2005-04-01 15:55:02 +00:00
Steven Wittens be14203534 - #18817: Clean up plain-text checking (see drupal-devel!) 2005-03-31 09:25:33 +00:00
Dries Buytaert 77a5d783f2 - Patch #19193 by CodeMonkeyX: made taxonomy_select_nodes() return node titles. 2005-03-21 20:58:56 +00:00
Steven Wittens 4fee0bdbec - #13550: Prettier RSS discovery URLs for taxonomy pages. 2005-03-18 08:25:07 +00:00
Dries Buytaert 032544cf08 - Patch #18861 by nkurz: fixed logic error in taxonomy_node_save().
(Not sure how/when it triggered.)
2005-03-15 21:18:19 +00:00
Dries Buytaert 1c4419c439 - Patch #18696 by Morbus: one '(' too much in taxonomy_term_count_nodes(). 2005-03-13 21:20:51 +00:00
Steven Wittens d16e18f9bb - Incorrectly filled in %name 2005-03-03 21:07:37 +00:00
Steven Wittens 198ec98f75 #18329: Unify confirmation messages (and make them themable) 2005-03-03 20:51:27 +00:00
Dries Buytaert 96211c616e - Patch #17955 by Neil: there was a subtle difference between form_select() and whatever taxonomy was doing. 2005-03-03 20:38:18 +00:00
Dries Buytaert 03374fc0f6 - Patch #17897 by Neil: changed the order of the joins so that a vocabulary which is not associated with any node types doesn't disappear. Also removed a centered column that shouldn't be hard coded and, IMO, looked rather weird. 2005-03-03 19:18:19 +00:00
Dries Buytaert cc78d6c8cf - Fixed PHP warnings. 2005-03-01 21:13:46 +00:00
Dries Buytaert c77153f19a - Removed dumb taxonomy block (based on DrupalCon feedback). 2005-03-01 20:43:59 +00:00
Dries Buytaert 39adda1687 - Patch #17747 by Adrian: more PostgreSQL fixes. Committed part of the patch:
1. Removed a duplicate line from the changes to update.inc.
   2. Excluded the session.inc changes: they did not make sense to me.
   3. Excluded the search related changes in the node and search module. According to Steven these are not correct.
2005-02-27 15:40:35 +00:00
Dries Buytaert 1e15bed312 - Patch #17687 by Gerhard: removed some cruft. 2005-02-21 19:47:44 +00:00
Steven Wittens d56cf2b59c #10296: Clean up admin - content:
- Mass-delete functionality (with confirmation)
- Flexible filtering for the overview table based on status, type and taxonomy.
- Missing drupal_goto's
- Clean up watchdog messages
- Remove some dead code
2005-02-02 00:55:59 +00:00
Dries Buytaert fbec279e4c - Patch #16246 by Moshe: added mechanism to direct the user back to the referring page after completing a form.
(Moshe: the patch against node.module failed to apply.)
2005-02-01 19:45:58 +00:00
Dries Buytaert 7931c778d7 - Patch #16513 by James (slightly modified): export categories and enclosures to RSS feeds (and made RSS feeds extensible).
NOTE: this needs to be documented.
2005-02-01 14:09:31 +00:00
Dries Buytaert 993ea0c6c5 - Patch #16111 by chx: generalized node_rewrite_query to db_rewrite_query. 2005-01-29 22:02:37 +00:00
Dries Buytaert 92320b2b21 - Patch #10425 by ccourtne and walkah: added admin screens to maintain forums instead of forcing the user to add a taxonomy. 2005-01-28 15:47:03 +00:00
Dries Buytaert e941b2060c - Consistency: 'deleted' -> 'Deleted'. 2005-01-27 22:47:08 +00:00
Dries Buytaert 7bdca92aad - Patch #6847 by Gerhard: replaced vocabulary->nodes by a separate table and tidied up the taxonomy API a bit. This fixes a number of issues. 2005-01-19 16:22:52 +00:00
Steven Wittens 09bd156ba2 - Fix tracker pager count query being wrong (it did not return a count but a set, and it counted nodes with more than 1 comment as multiple nodes).
- Clean up various SQL queries: removing literally inserted data (db_escape_string is evil!), fixing single "%" which should be "%%", fixing integers being compared as strings.
2005-01-19 01:46:25 +00:00
Steven Wittens e7edb55d63 - The real code fixes ;) 2005-01-17 19:00:03 +00:00
Steven Wittens a1579a3aee - Reversing bad commit, sorry everyone. 2005-01-17 18:56:11 +00:00
Steven Wittens b45bd13d44 - Various code style fixes 2005-01-17 00:41:35 +00:00
Dries Buytaert 971a0e24aa - Patch #14731 by chx: made it possible to rewrite node queries. 2005-01-16 18:44:49 +00:00
Dries Buytaert 5049c3e1e4 - Reorganized the code a bit 2004-12-28 22:42:47 +00:00
Steven Wittens 57e402e0d0 #10949: Incorrect output with invalid term id 2004-12-24 06:48:57 +00:00
Dries Buytaert 2b17b3a966 - Patch #13907 by Neil: less ways to set the page title.
* Less logic in theme code.
   * Encourages use of the menu system.
   * Easier to find where a title or breadcrumb comes from in other people's code because there are less places to look. Look in menu and then grep for the appropriate set function. Looking for calls to theme_page() is hard because there are too many of them.
   * Very slightly more efficient.
2004-12-15 21:19:42 +00:00
Dries Buytaert e7ce1e3ccb - Patch #11977 by matteo: added extra DISTINCT()s to two SQL queries to make them work with node-level permissions. 2004-11-29 12:52:44 +00:00
Dries Buytaert 8b2f6699e4 - Patch #10693 by Ax: fixed broken (external) link in the taxonomy module's help. 2004-11-27 09:30:32 +00:00
Dries Buytaert 9574766ad8 - Patch by Stefan: wrapped the help texts in <p></p> tags. Helps improve consistency. 2004-11-23 22:20:41 +00:00
Dries Buytaert fa97839088 - Patch 13180 by chx: renamed check_query() to db_escape_string() and implemtented it properly per database backend.
Read the manual for pg_escape_string:  "Use of this function is recommended instead of addslashes()." Or read sqlite_escape_string: "addslashes() should NOT be used to quote your strings for SQLite queries; it will lead to strange results when retrieving your data."
2004-11-21 08:25:17 +00:00
Dries Buytaert 9979aceab0 - Patch #12783 by Stefan: various small consistency/usability improvements. 2004-11-15 11:16:39 +00:00
Dries Buytaert 52d9dd1b01 - Patch #11977 by matteo: taxonomy_term_count() did not take node-level permissions into account and could return an incorrect number. 2004-11-15 10:00:50 +00:00
Dries Buytaert b3adcf05a3 - Patch #11875 by Neil Drumm: block module configuration improvements.
The primary goal of this patch is to take the 'custom' and 'path' columns of the block overview page and make them into something understandable. As of Drupal 4.5 'custom' lacked an explanation which wasn't buried in help text and path required dealing with regular expressions.

Every block now has a configuration page to control these options. This gives more space to make form controls which do not require a lengthy explanation. This page also gives modules a chance to put their block configuration options in a place that makes sense using new operations in the block hook.

The only required changes to modules implementing hook_block() is to be careful about what is returned. Do not return anything if $op is not 'list' or 'view'. Once this change is made, modules will still be compatible with Drupal 4.5. Required changes to core modules are included in this path.

An additional optional change to modules is to implement the additional $op options added. 'configure' should return a string containing the configuration form for the block with the appropriate $delta. 'configure save' will come with an additional $edit argument, which will contain the submitted form data for saving. These changes to core modules are also included in this patch.
2004-10-31 07:34:47 +00:00
Steven Wittens 11b0b805fa #12186: Add xml icon to taxonomy listings. 2004-10-28 23:46:10 +00:00
Dries Buytaert 1362571d09 - Patch #11510 by Adrian: turned a non-ANSI SQL query into ANSI SQL so it works with PostgreSQL. 2004-10-18 17:46:19 +00:00
Dries Buytaert dfb3c3aec4 - Patch #11577 by drumm: changed t('ago') -> t('%time ago', ...) to make it
translatable in languages such as Spanish.
2004-10-15 05:10:35 +00:00
Steven Wittens 9e4399aae8 #10677: Confirmation when deleting a block + unifying confirmation screens. 2004-10-14 15:28:24 +00:00
Dries Buytaert 551782a5b2 - Modified patch #10424 by Jeremy: deleting terms can orphan child terms in the database.
I rewrote this patch for simplicity.
2004-10-13 18:38:33 +00:00
Dries Buytaert 57def735f4 - Patch #11166 by drumm: removed redundant help page from the taxonomy module. 2004-10-04 18:32:05 +00:00
Dries Buytaert 327a256a2e - Removed the title attribute from the taxonomy links. Temporary fix for #7468. 2004-09-30 19:12:44 +00:00
Steven Wittens 0ca171f2a9 - Adding menu callbacks to taxonomy admin. Before this patch, some admin pages only showed tabs and the wrong title. 2004-09-19 12:47:00 +00:00
Dries Buytaert 4e3a3aaed0 - Bugfix: using non numeric terms in taxonomy-page URLs would result in SQL errors. 2004-09-19 08:41:50 +00:00
Dries Buytaert 5c7983c4de - Patch #8179 by JonBob: reintroduced menu caching. 2004-09-16 07:17:56 +00:00
Steven Wittens 5595bc79c6 #10279: Adding a note to taxonomy_render_nodes when there are no nodes to show, rather than showing an empty page. 2004-09-14 22:55:40 +00:00
Kjartan Mannes c054ce2c3f - Fixing taxonomy descriptions in node_view links. 2004-09-11 13:19:03 +00:00
Dries Buytaert 7b716e8e77 - Patch #10622 by Adrian: fixes various PostgreSQL related problems.
1) Menu problems with Postgres (this is a highly critical 1 line fix)
  2) Archive module fails with Postgres
  3) Postgres setup problems - changes to database.pgsql (although i made these changes myself before finding this patch)
  4) Book module fails with Postgres
  5) Postgres problems following creation of a new type of user - which is actually about a taxonomy.module bug.
  6) Creating accregator_item_table in PostgreSQL
  7) Postgres - Polls not displayed on Poll Page
  8) Blog module has sql errors with postgres

  This should not affect MySQL users (hopefully).
2004-09-08 15:38:26 +00:00
Steven Wittens 738dd5f353 #9292: Minor PHP5 fix. 2004-09-03 01:48:06 +00:00
Dries Buytaert 94e30bf776 - Patch by JonBob: for consistency and readability, add brief descriptions of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks. 2004-08-21 06:42:38 +00:00
Dries Buytaert fa25c7a0ca - Code improvements by Stefan: use capital letters for header titles (and added some missing t() functions). 2004-08-19 15:41:57 +00:00
Dries Buytaert 83a739bd89 - Code improvements by Stefan: made all status messages consistent (and easier to translate). 2004-08-18 19:57:27 +00:00
Dries Buytaert 2f33b939c5 - Patch #9983 by Stefan: usability improvement: made sure all status messages start with a capital letter. 2004-08-16 18:02:48 +00:00
Dries Buytaert a36304af0d - Patch #8176 by JonBob: fixed braino in SQL query. 2004-08-12 22:16:01 +00:00
Steven Wittens 09fc61c065 - #9148 and #8766: Fix problem with using '%' in term names. 2004-08-10 14:50:53 +00:00
Dries Buytaert 290c3fbc38 - Patch #9875 by njivy: call to taxonomy_overview() is missing in admin view. 2004-08-09 05:14:03 +00:00
Dries Buytaert bdbc34c93b - Patch #6760 by JonBob: refactored the taxonomy module URLs to be nicer, improved the code/Doxygen comments.
As discussed before, the path "taxonomy/page/or/1,2" becomes "taxonomy/term/1+2" and the path "taxonomy/page/and/1,2" becomes "taxonomy/term/1,2". The most common case of listing nodes attached to a single term becomes simpler, since it doesn't require a meaningless "or" or "and". A depth of "0" is assumed, but a positive integer or "all" can be used. Feeds are available at "taxonomy/term/1+2/all/feed" and the like.

  This iteration of the patch also changes the structure of taxonomy_select_nodes(), since it was not following Drupal conventions. A handful of contrib modules call this function, and will need to be updated. Instead of passing in a $taxonomy object containing parameters for the function, the parameters are passed independently. This simplifies the code quite a bit. The queries were changed to only return node IDs for speed; all results from this function are passed through node_load() anyway, so the extra information returned was discarded. The AND query was also changed to avoid the strange trick and remove an extra query, at the expense of a table join per root term in the AND. This cleans up the code substantially while at the same time enabling the use of AND with a depth parameter.

  TODO: update contribution modules.
2004-08-07 19:45:54 +00:00
Dries Buytaert 6f024382e5 - Made the taxonomy module use drupal_goto() to fix up the interaction behavior. 2004-08-07 19:28:25 +00:00
Dries Buytaert 202eee42a9 - Patch #9543 by JonBob: added node-level access control! 2004-07-31 09:30:09 +00:00
Dries Buytaert ac5b5616c0 - More tab-improvements by JonBob: improved support for the default tabs! 2004-07-10 15:51:48 +00:00
Dries Buytaert 898bdeffaf - Marked required fields on the node (story, book, page, blog) and comment
forms using the $required argument of the form_ functions.

- Replaced all Optional's and Required's from the taxonomy forms with proper
  use of the form_ functions.

Please check your contributed modules too!
2004-07-08 15:24:30 +00:00
Dries Buytaert 3568ed57e1 - Moving the title.module from core to contrib as discussed on the mailing list. 2004-07-07 20:18:22 +00:00
Dries Buytaert fe2b3e7c00 - Patch by Steven and me: refactored the form handling of nodes. The node system is now using form_set_error() and friends like the rest of Drupal does. This makes for both a consistent user experience and consistent code. It simplifies the forms and validation code, however, it does change the node API slightly:
* The _validate hook and the _nodeapi('validate') hook of the node API (1) no longer take an 'error' parameter and (2) should no longer return an error array. To set an error, call form_set_error().

    * The _form hook of the node module no longer takes a form hook and should not worry about displaying errors. Ditto for _nodeapi('form_post') and _nodeapi('form_pre').
2004-07-04 16:50:02 +00:00
Dries Buytaert 9986cb36b5 - Patch #8973 by JonBob: Drupal contains many undefined variables and array indices, which makes PHP throw a lot of warnings when the reporting level is set to E_ALL. Things run fine with these warnings, but as a matter of code style if nothing else we should probably strive to avoid them. The attached fixes most of the more egregious offenders (about 95% of the warnings when I load /node on my test site). 2004-07-02 18:46:42 +00:00
Dries Buytaert 9f4a335887 - Taxonomy fix by Matt. 2004-06-23 20:52:46 +00:00
Dries Buytaert ad3c6f345e - Patch #8681 by asimmonds: more help text updates 2004-06-21 08:26:20 +00:00
Dries Buytaert 4b449a7e5d - Patch #8670 by asimmonds: spelling fixes. 2004-06-20 19:43:28 +00:00
Dries Buytaert cbc230a36c - Patch #7696 by TDobes: renamed 'static' to 'sticky' which is a more
logical name.  Requires a database upgrade.
2004-06-19 10:39:36 +00:00
Dries Buytaert c3a6f3dc54 - Patch #8632 by Mohse: made the taxonomy select menus more flexible.
Specifically, it lets you edit more than one node's taxonomy within
  the same form.

  This patch also removes the behavior where taxonomy remembers your
  last choice for a given vocab and automatically selects it for you.
  That is poor behavior.  If someone changes a date or author in a
  node, he is likely to inadvertently add taxo terms using with this
  'feature'.
2004-06-19 09:57:13 +00:00
Dries Buytaert 54b77d6435 Tabs patch!
CHANGES
-------

 + Introduced tabs. First, we extended the menu system to support tabs. Next, a tab was added for every link that was (1) an administrative action other than the implicit 'view' (2) relevant to that particular page only. This is illustrated by the fact that all tabs are verbs and that clicking a page's tab leads you to a subpage of that page.

 + Flattened the administration menu. The tabs helped simplify the navigation menu as I could separate 'actions' from 'navigation'. In addition, I removed the 'administer > configuration'-menu, renamed 'blocks' to 'sidebars' which I hope is a bit more descriptive, and made a couple more changes. Earlier, we already renamed 'taxonomy' to 'categorization' and we move 'statistics' under 'logs'.

 + Grouped settings. All settings have been grouped under 'administer > settings'.

TODO
----

 + Update core themes: only Xtemplate default supports tabs and even those look ugly.  Need help.

 + Update contributed modules.  The menu() hook changed drastically.  Updating your code adhere the new menu() function should be 90% of the work.  Moreover, ensure that your modue's admin links are still valid and that URLs to node get updated to the new scheme ('node/view/x' -> 'node/x').
2004-06-18 15:04:37 +00:00
Dries Buytaert 3a8c1d6780 - Patch #8548 by Moshe: fixed warning when creating new vocabulary. 2004-06-17 18:10:05 +00:00
Dries Buytaert 5ba08f61c2 - Patch #8418 by Axel: don't insert tid=0's in the database 2004-06-15 18:41:25 +00:00
Dries Buytaert 7a33d9f6fd - Patch #7350 by Mathias: return part a taxonomy tree to a user-defined
depth/level.

- Updated CHANGELOG.txt.
2004-05-31 19:14:43 +00:00
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 33651a4edf #7468 - Added title="" attribute with term descriptions (if present) to taxonomy links.
See http://drupal.org/node/view/7468
2004-05-04 01:44:30 +00:00
Dries Buytaert 5403982589 - Patch #6009 by Matthias: reworked the help texts of the taxonomy module generated forms. The help text can now be customized. 2004-04-24 16:42:39 +00:00
Dries Buytaert e5e26a07d6 - Patch #7302 by Gerhard: saves the selected terms in a session variable. 2004-04-23 07:40:26 +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
Dries Buytaert 67fb5235c7 - Renamed 'taxonomy' menu to 'categories' for sake of usability. 2004-04-18 14:03:33 +00:00
Dries Buytaert 10bdb51c37 - Patch by JonBob/Jonathan: reworked the menu system so that menus are
configurable!  Menu items can be disabled, repositioned, added and
  so on.

  Upgrading to requires you to run update.php.

  This functionality depricates some of the 'navigation modules' in the
  contributions repository.  Furthermore, modules can now 'suggest'
  menu items and site adminstrators can choose to enable them.  Modules
  in the contributions repository should try to take advantage of this.
2004-04-15 20:49:42 +00:00
Dries Buytaert 142dd6ba43 Patch #5588 by bylund: XHTML improvements: <i> -> <em> and <b> -> <strong>. 2004-03-20 13:29:06 +00:00
Dries Buytaert 10917b1213 - Patch #6470 by Brian: fixed XHTML error with multiple selection boxes. 2004-03-14 20:07:00 +00:00
Dries Buytaert ccc9276f45 - Patch #4902 by Goba: fix URLs in RSS feeds.
+ Make all channel links absolute.
   + Always set the $base_url as xml:base, thus providing a solid base for
     relative URLs.
2004-03-06 16:17:48 +00:00
Kjartan Mannes 2d7d796d9b - Fix implode() errors. 2004-02-21 23:43:07 +00:00
Dries Buytaert 4cb7279721 - Patch by Gerhard: fixed incorrect regex in the taxonomy module. 2004-02-21 19:16:07 +00:00
Dries Buytaert 4b0b2d02ee - Patch by Steven: removed redundant permission checks. These are no longer
required thanks to the new 404 handling.
2004-02-15 20:09:46 +00:00
Dries Buytaert 14b84fa299 - Fixed bug #5831: added validation for posting to forum containers. Patch
by UnConeD.
2004-02-12 19:04:20 +00:00
Dries Buytaert d0ffb4794a - Refined the regex to validate the input. 2004-02-08 11:08:28 +00:00
Dries Buytaert 06b25311b4 - Bug 4853: fixed invalid taxonomy query. 2004-02-07 10:39:54 +00:00
Dries Buytaert eec20988bf - Patch #5575 by Stefan: fixed invalid XHTML code in the node and taxonomy module. 2004-02-01 21:51:28 +00:00
Dries Buytaert dc938c533b - Patch #5567 by Goba: fixed t() functions, cleanup of locale module's help,
fixed translation issues in taxonomy module, etc.
2004-02-01 21:04:42 +00:00
Dries Buytaert 1687dd07c9 - Patch 5049 by JonBob: allow a module to define multiple node types. 2004-01-27 18:47:07 +00:00
Dries Buytaert b85eb11e11 Patch 5287 by Stefan: multiline help texts should become inside a single $output. 2004-01-23 18:42:43 +00:00
Dries Buytaert 88d0603e93 - Patch 5080 by lizardo: fixed two typos in the taxonomy module's help text. 2004-01-18 07:58:22 +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 a8b8c247db - Patch #5021: clean up URLs in _help texts. Patch by UnConeD. 2004-01-11 20:31:26 +00:00
Dries Buytaert 21a0e8b904 - Updated code to use new semantics of url() and l(). 2003-12-29 19:49:11 +00:00
Dries Buytaert 80f34e5ab0 - XHTML improvements: <b> -> <strong>. Patch by Stefan. 2003-12-29 17:14:27 +00:00
Dries Buytaert baaa21e131 - Tidied up some inconsistencies in the code: scripts/code-style.sh is your friend. 2003-12-28 10:47:33 +00:00
Dries Buytaert 26e5362cf9 Fixed bug #4551: missing {} for prefix support 2003-12-28 00:05:49 +00:00
Dries Buytaert cb7c2e09ed - Fixed the breadcrumb trail of nested forums. Patch by Goba. 2003-12-24 15:09:43 +00:00
Dries Buytaert d5c8026454 - Updated the calls to menu() to use MENU_HIDE instead of 1 2003-12-17 22:27:23 +00:00
Dries Buytaert c096d42568 - Patch 187: made taxonomy module take advantage of breadcrumb navigation.
Modified patch by Moshe.
2003-12-11 21:21:16 +00:00
Dries Buytaert 712a30b520 - Improvements by Goba:
+ removes the lots of pagers and indirect pager themeing
  + add the theme_pager() function, which should be called as
    theme("pager", ...) to get a pager.
2003-12-08 18:30:20 +00:00
Dries Buytaert 3904790e03 - Tidied up the DoxyGen comments. Patch by Kjartan. 2003-12-08 06:32:19 +00:00