I am beginning a module which implements the hook_webform_submission_insert. I am successfully getting the following data from my implementation of that hook:
stdClass Object ( [nid] => 3401 [uid] => 1 [submitted] => 1425491295 [remote_addr] => http://myserver.com [is_draft] => 0 [data] => Array (  => Array ( [value] => Array (  => Chandler Mann ) )  => Array ( [value] => Array (  => tecut[email protected] ) ) . . .
I need to write code to programmatically map each value index to node fields in a process of creating nodes from custom code.
However, as the output above does not have field names, it's difficult to map correctly to the necessary node fields.
Can anyone advice how I might discover what name webform assigns to the field#id 2, 3 etc as in my code sample above?