The NodeAPI example needs a bit of D7 love.

In fact, considering that hook_nodeapi doesn't exist in D7, it needs a LOT of love.

Attached is a first attempt to port to the equivalent hook_node_update, hook_node_insert etc., together with fixing other breaking changes. I think it's probably fair to continue to call it nodeapi example even though that's not actually the hook used anymore.

CommentFileSizeAuthor
examples_nodeapi_D7.patch12.52 KBtanoshimi

Comments

Status: Needs review » Needs work

The last submitted patch, examples_nodeapi_D7.patch, failed testing.

ilo’s picture

Status: Needs work » Closed (duplicate)

Duplicate of #615466: Various nodeapi_example D7 failures, in any case, yo avoid running again into the same errors I did before (about schema and install uninstall hooks), and to settle once and for all how to deal with this module I would like to restart the discussion again.

Thanks tanoshimi for the effort in moving this one!