Needs review
Project:
Node Convert
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2012 at 17:03 UTC
Updated:
28 Sep 2012 at 17:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
kevin.dutra commentedHere's a patch that does a couple things.
First, it makes "src_node_type" available in the
$dataarray that gets passed tohook_node_convert_change(), since you don't have the node to work with for the "options" and "options validate" operations. It's also just handy to have.Second, it uses checks the
$data['src_node_type']and$data['dest_node_type']to see if they have the forum vocabulary and that makes the determination on whether to do actions within the forum implementation of the hook.