Upgraded hook_nodeapi to D7