Returns an edit array containing the values to be posted.
protected function getEditValues($values, $langcode, $new = FALSE) {
$edit = $values[$langcode];
$langcode = $new ? LANGUAGE_NOT_SPECIFIED : $langcode;
foreach ($values[$langcode] as $property => $value) {
if (is_array($value)) {
$edit["{$property}[{$langcode}][0][value]"] = $value[0]['value'];
unset($edit[$property]);
}
}
return $edit;
}