You are here

function title_field_replacement_batch_set in Title 7

Set a batch process to initialize replacing field values.

Parameters

$entity_type: The type of $entity.

$bundle: The bundle the legacy field belongs to.

$legacy_field: The name of the legacy field to be replaced.

2 calls to title_field_replacement_batch_set()
drush_title_upgrade_title_field in ./title.drush.inc
Command callback for upgrade-title-field.
title_field_replacement_form_submit in ./title.admin.inc
Process field replacement form submissions.

File

./title.module, line 339

Code

function title_field_replacement_batch_set($entity_type, $bundle, $legacy_field) {
  $batch = array(
    'title' => t('Replacing field values for %field', array(
      '%field' => $legacy_field,
    )),
    'operations' => array(
      array(
        'title_field_replacement_batch',
        array(
          $entity_type,
          $bundle,
          $legacy_field,
        ),
      ),
    ),
  );
  batch_set($batch);
}