You are here

function lingotek_get_unmarked_batch_elements in Lingotek Translation 7.7

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

2 calls to lingotek_get_unmarked_batch_elements()
lingotek_config_unmark_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 176
Central location for batch create functions, before control is handed off to individual batch command files.

Code

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