To prevent confusions (see for example the threads Understanding the hook system, and HOOK SYSTEM - does anyone understand it?), I believe a short explanation like the following -or similar- should be added to the introductory text on http://api.drupal.org/api/group/hooks :

"The hook codes included here are not part of the Drupal core, they are just models that you can modify. Only the hook functions implemented within modules are executed when running Drupal."

Comments

jhodgdon’s picture

Project: Drupal.org site moderators » Drupal core
Version: » 7.x-dev
Component: API.drupal.org » documentation
Category: task » bug

This should be in a different issue queue.

jhodgdon’s picture

Issue tags: +Novice

This would probably be a good project for a novice

puddlenipper’s picture

Assigned: Unassigned » puddlenipper

Mine!

puddlenipper’s picture

Status: Active » Needs review
StatusFileSize
new949 bytes

Added the text.

jhodgdon’s picture

Status: Needs review » Needs work

Ummm...

"The hook codes included below are not part of the Drupal core, they are just models that you can modify. "

I don't think this is clear... Besides which, "codes" should be "code" if we keep this sentence as-is, and "below" is not really accurate because the code is only below if you are looking at the source code in the file, not if you are looking at the text as displayed on drupal.org.

So do you think you can rewrite this in some way to make it clearer? I realize the person who submitted the issue suggested this text, but I don't think the text is really all that great...

cwgordon7’s picture

Status: Needs work » Needs review
StatusFileSize
new759 bytes

Here's a rerolled patch incorporating the comments in #5.

chx’s picture

Status: Needs review » Reviewed & tested by the community

17 year olds fixing patches by 14 year olds. /me feels ancient.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

That's a nice clarification. Committed to HEAD!

Status: Fixed » Closed (fixed)
Issue tags: -Novice

Automatically closed -- issue fixed for 2 weeks with no activity.