After migrating all the content from a drupal 6 installation to a drupal 7 one, I ended up with empty fields in my nodes, that are displayed when viewing the node.
However if I edit the node without changing anything and save it, the empty fields are gone (at that point the save function populates the database with the proper null values).
Obviously I can't do that by hand and the solution proposed here: Load and Save nodes with script? doesn't remove the empty fields, even if I actually edit one of the fields. I would like to do this with a php script as I am not familiar at all with Python and the selenium script proposed here: How to programmatically iterate over nodes, load into form, and save the form?.
Now as far as Drupal's
form_submit method, how does it actually populate the
$form_state variables since I won't be changing anything.
Thanks in advance.