I have defined a batch, everything works ok, but I want to understand how the messages are displayed. So I have this batch:
$batch = array( 'title' => t('Generate reports'), 'operations' => array( array('create_report_callback', array($time_min, $time_max)), ), 'init_message' => t('Starting report generation...'), 'progress_message' => t('Generating report. Operation @current out of @total.'), 'error_message' => t('Error detected. Please try again!'), 'finished' => 'create_report_finished', );
What I want to know is how to change the progress_message
to something else than Operation @current out of @total
. I don’t know where the @current
and @total
come from
Thank you.