function message_admin_text_copy_submit in Message 7
Submit callback for the copy texts form.
File
- includes/
message.admin.inc, line 168 - Message type editing UI.
Code
function message_admin_text_copy_submit($form, $form_state) {
$batch = array(
'title' => t('Copying messages texts betweem languages'),
'operations' => array(
array(
'message_admin_text_copy_batch',
array(
$form_state['values']['origin'],
$form_state['values']['destinations'],
$form_state['values']['override'],
),
),
),
'init_message' => t('Starting message texts copying.'),
'progress_message' => t('Processed @current out of @total.'),
'error_message' => t('Message texts copying has encountered an error.'),
);
batch_set($batch);
}