Errata (First Edition)
This page lists the errors found in the first edition of the book.
Chapter 10. The Form API, Page 180
Wed, 07/18/2007 - 7:33pm — Katie BarnesDo not confuse type = '#value' and #value = 123.
Do not confuse '#type' => 'value' and '#value' => 123.
The #type property is missing its #. The array => syntax should be used (instead of =) for setting key/value pairs. The value the #type property is being set to should not have a # preceding it.
Chapter 10. The Form API, Page 181
Wed, 07/18/2007 - 7:36pm — Katie Barnes$form['weight'] = array('#type' => 'weight',
$form['weight'] = array(
'#type' => 'weight',
For consistency purposes and readability the property setting should start on the following line as it does elsewhere throughout the book.
Chapter 11. Manipulating User Input: The Filter System, Page 190
Thu, 08/02/2007 - 11:34am — soxofaanversion = $Name$
version = "$Name$"
forgotten quotes
[And note that using version at all is now discouraged. -JV]
Chapter 12. Searching and Indexing Content, Page 200
Tue, 06/12/2007 - 1:43pm — soxofaanomitted dependencies
dependencies = search path
The module pathfinder.module depends on search.module and path.module (as stated in the second paragraph of p201). The .info file should reflect that
Chapter 12. Searching and Indexing Content, Page 200
Fri, 06/29/2007 - 10:38pm — dolmenMissing break; statement before case 'search':.
Chapter 12. Searching and Indexing Content, Page 201
Tue, 09/25/2007 - 7:05pm — drozzy'link'=> url("admin/path/edit/$path->pid"));
'link'=> url("admin/build/path/edit/$path->pid"));
Wrong link. Word /build in the path is missing.
Chapter 12. Searching and Indexing Content, Page 202
Fri, 06/29/2007 - 10:39pm — dolmenMissing break; statement before case 'search':.
Chapter 16. Sessions, Page 253
Mon, 09/08/2008 - 11:14am — gpkNote that the name of the session cookie is PHPSESSID only in Drupal 5.0 and 5.1. A new cookie naming convention was introduced in Drupal 5.2 - see http://www.drupalbook.com/node/152 for details.
Chapter 16. Sessions, Page 254
Sat, 06/16/2007 - 10:00am — soxofaansession.gc.maxlifetime
session.gc_maxlifetime
typo
Chapter 16. Sessions, Page 254
Mon, 09/08/2008 - 10:32am — gpkSee http://www.drupalbook.com/node/153. The error is identical.
The Drupal 5 version of sess_write() is at http://api.drupal.org/api/function/sess_write/5.
