The first param to hook_user is incorrectly documented for HEAD.
http://drupaldocs.org/api/head/function/hook_user

It is called $type in the API description and in the code fragment, but $op in the parameter descriptions.

The error is not present in the 4.5 and 4.6 doc, where it is called $op, or the 4.4 doc where it is called $type, so this look likes a cutting and pasting error.

Comments

chx’s picture

Priority: Normal » Critical
rivena’s picture

Status: Active » Fixed

Marking fixed because on this page: http://api.drupal.org/api/4.7/function/hook_user there is no $type, and it says $op both in the parameters and the code. What do I know, though. ^.^

Anisa.
code illiterate!

fgm’s picture

Status: Fixed » Closed (fixed)