You are here

function getid3_perform_batch_process in getID3() 7.2

Triggers the batch operation for updating file entities.

1 call to getid3_perform_batch_process()
getid3_install in ./getid3.install
Implements hook_install().

File

./getid3.module, line 203

Code

function getid3_perform_batch_process() {
  $batch = array(
    'title' => t('Updating existing File Entities with ID3 data'),
    'init_message' => t('Preparing to update entities..'),
    'progress_message' => t('Processed @current out of @total items.'),
    'operations' => array(
      array(
        'getid3_analyze_existing_files',
        array(),
      ),
    ),
    'finished' => 'getid3_perform_batch_process_complete',
  );
  batch_set($batch);
}