You are here

function lingotek_get_marked_batch_elements in Lingotek Translation 7.7

Update marked entities: Creates the batch elements for marked entities.

2 calls to lingotek_get_marked_batch_elements()
lingotek_config_mark_items in ./lingotek.config.inc
lingotek_grid_action_submit in ./lingotek.bulk_grid.inc
Submit function for The Grid's actions The action corresponds to the key of the option selected Often redirects to batch operations or to other pages entirely

File

./lingotek.batch.inc, line 161
Central location for batch create functions, before control is handed off to individual batch command files.

Code

function lingotek_get_marked_batch_elements($entity_type, $entity_ids = array()) {
  $operations = array();
  if (is_array($entity_ids)) {
    foreach ($entity_ids as $entity_id) {
      $operations[] = array(
        'lingotek_update_marked_items',
        array(
          $entity_type,
          $entity_id,
        ),
      );
    }
  }
  return $operations;
}