function _field_collection_update_7009_new_revision in Field collection 7
1 call to _field_collection_update_7009_new_revision()
- field_collection_update_7009 in ./
field_collection.install - Update revisions created before revision support was implemented.
File
- ./
field_collection.install, line 561 - Install, update and uninstall functions for the field_collection module.
Code
function _field_collection_update_7009_new_revision($field_collection_item_id, $row_to_replace, $inner_fields, $field_name) {
// Add to field_collection_item_revision table.
$new_revision_id = db_insert('field_collection_item_revision')
->fields(array(
'item_id',
), array(
$field_collection_item_id,
))
->execute();
return $new_revision_id;
}