Errata (First Edition)

This page lists the errors found in the first edition of the book.

Chapter 8. The Theme System, Page 107

Location on the page: 
2nd to last paragraph
Error: 

sites/all/themes/engine

Correction: 

sites/all/themes/engines

Description of the Error: 

Typo

Chapter 8. The Theme System, Page 107

Location on the page: 
Last paragraph
Error: 

themes/engine/phptemplate

Correction: 

themes/engines/phptemplate

Description of the Error: 

Typo

Chapter 8. The Theme System, Page 121

Location on the page: 
2nd code snippet
Error: 

block-user.tpl.php // Target all block output by user module.

Correction: 

block-user.tpl.php // Target all blocks output by user module.

Description of the Error: 

Grammar tweak

Chapter 8. The Theme System, Page 123

Location on the page: 
Last line of code in theme_breadcrumb() listing
Error: 

implode(' É ', $breadcrumb)

Correction: 

implode(' › ', $breadcrumb)

Description of the Error: 

The little arrow used to separate breadcrumb items was misprinted.

Chapter 8. The Theme System, Page 126

Location on the page: 
first line of second paragraph under title "adding and manipulating template variables"
Error: 

phptemplate_callback()

Correction: 

_phptemplate_callback()

Description of the Error: 

typo

Chapter 9. Working with Blocks, Page 136

Location on the page: 
10th paragraph or 6th list item titled 'pages'
Error: 

The text states, "pages: Defines the default pages the node should be visible on.".

Correction: 

pages: Defines the default pages the block should be visible on.

Description of the Error: 

typo

Chapter 9. Working with Blocks, Page 141

Location on the page: 
Big paragraph just below the middle
Error: 

Here, we've defined the $delta IDs to be 0 for the OPending commentsO block and 1 for the OUnpublished nodesO block.

Correction: 

Here, we've defined the $delta IDs to be 0 for the "Pending comments" block and 1 for the "Unpublished nodes" block.

Description of the Error: 

Some typography thing - quotes around the terms have come out with some O-with-a-slash character.

Chapter 9. Working with Blocks, Page 144

Location on the page: 
bottom of the page, under "Displaying a Block to Logged-In Users Only"
Error: 

Only return TRUE when $user->id is not 0.

Correction: 

Only return TRUE when $user->uid is not 0.

Description of the Error: 

typo in the uid-property of the $user object.

Chapter 10. The Form API, Page 157

Location on the page: 
code example
Error: 

At the end of the code example, the passage should not appear in bold, since it exists in the code example on page 154 already.

$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit')
);
return $form;

Also, in line 8
$form['name']['user_name'] = array(

['user_name'] should not be in bold typeface.

Correction: 

Do not set mentioned code snippets boldface.

Description of the Error: 

Minor error

[Note that user_name is in bold because it has changed; it is now nested inside a fieldset. -JV]

Chapter 10. The Form API, Page 159

Location on the page: 
Code listing
Error: 

'</div>';

Correction: 

'</div>'

Description of the Error: 

A semicolon is included in an array definition.