Go to file
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
database - Patch #12381 by killes: removed old updates. 2005-08-16 20:17:54 +00:00
includes - Patch #29785 by Chx: multiple node types were broken so we refactored 2005-08-28 15:29:34 +00:00
misc - Patch #29075 by fago: made the collapsible fieldset icons work in IE 5. 2005-08-22 20:29:00 +00:00
modules - Patch #29785 by Chx: multiple node types were broken so we refactored 2005-08-28 15:29:34 +00:00
scripts - Patch by Uwe: tidied up the CVS IDs. 2005-08-11 13:02:08 +00:00
sites/default - Patch #19800 by Daniel: make default $db_url informative and unique. 2005-04-14 18:34:31 +00:00
themes - Patch #29283: bluemarine mistakenly loads home page every time. 2005-08-24 15:28:53 +00:00
.htaccess - Patch #19126 by Uwe: fixed inconsistent whitespace in .htaccess. 2005-03-20 19:15:00 +00:00
CHANGELOG.txt - Added a note about the 'block regions'. 2005-08-17 20:09:12 +00:00
INSTALL.txt - #21021: wrong url in INSTALL.txt 2005-04-23 05:07:08 +00:00
LICENSE.txt - Patch #9224 by JonBob: updated to latest version with new address and such. 2004-09-15 20:48:18 +00:00
MAINTAINERS.txt - Made Cvgbe the PostgreSQL maintainer. 2005-08-28 15:13:35 +00:00
cron.php - Patch #27003 by Neil: use named constants instead of strings 2005-07-23 05:57:27 +00:00
index.php - Patch #27003 by Neil: use named constants instead of strings 2005-07-23 05:57:27 +00:00
update.php - Patch #29597 by Neil: removing some Drupal 4.2 and Drupal 4.3 left-overs. 2005-08-25 21:03:53 +00:00
xmlrpc.php - 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