You are here

function replicate_ui_replicate_field_collection in Replicate UI 7

The action function for the 'replicate_ui_replicate_field_collection'.

File

./replicate_ui.rules.inc, line 116
Replicate Rules code: actions, conditions and events.

Code

function replicate_ui_replicate_field_collection($field_collection) {
  $new = replicate_entity('field_collection_item', $field_collection);
  if ($new) {
    drupal_set_message(t('Field Collection @id has been replicated!', array(
      '@id' => $field_collection->item_id,
    )));
  }
}