Hook to fetch data after a node update I have used editable views module to get a single page to edit the nodes. I want to store the updated details to an external table.

I have used hook_node_update but it only saves the first node's value to my external table not the rest of nodes(I have 18 nodes in a single page to edit).

function pmr_data_table_node_update($node) {

  if($node-&gt;type == 'upload_data'){
    $node_id = $node-&gt;nid;
    $profit = $node-&gt;field1['und'][0]['value'];
    $satisfaction = $node-&gt;field2['und'][0]['value'];
    $from = $node-&gt;field3['und'][0]['value'];
    $to = $node-&gt;field3['und'][0]['value2'];


    $newDate = date("Y-m-d H:i:s", strtotime($to));

    $entry = db_update('table_name')
     -&gt;fields(array(
     'profitability' =&gt; $profit,
     'customer_satisfaction' =&gt; $satisfaction,
     ))
     -&gt;condition('nid', $node_id, '=')
     -&gt;condition('to_date', $newDate, '=')
     -&gt;execute();
    drupal_set_message('Data updated successfully.'); 

  }

}


The above code only saves the first node in the editable view list. Can anybody suggest how can I save all the field values in a single round? Is there any hook where I can use to save the all the changed field values to the external table?

OR

Is there any hook by which I could get the data just after the set of nodes are updated?
The thing I didn't understand is how are you updating the nodes? you said in a single page edit? what does this mean? do you mean vbo? or is it in node page view? 

Because your code seems right and should run on every node and if you are using vbo so it would be an issue related to it!

if you can explain more I'd be happy to help