You are here

function _field_collection_update_7009_update_data in Field collection 7

1 call to _field_collection_update_7009_update_data()
field_collection_update_7009 in ./field_collection.install
Update revisions created before revision support was implemented.

File

./field_collection.install, line 573
Install, update and uninstall functions for the field_collection module.

Code

function _field_collection_update_7009_update_data($new_revision, $old_revision) {

  // Update the current field collection item.
  db_update('field_collection_item')
    ->fields(array(
    'revision_id' => $new_revision,
  ))
    ->condition('revision_id', $old_revision)
    ->execute();
}