function gathercontent_views_vbo_upload in GatherContent 7.3
@TODO: function comment!!!
1 string reference to 'gathercontent_views_vbo_upload'
File
- ./
gathercontent.module, line 1300
Code
function gathercontent_views_vbo_upload($form, &$form_state) {
$uuid = _gathercontent_uuid_generate();
$operation = entity_create('gathercontent_operation', array(
'uuid' => $uuid,
'type' => 'upload',
));
entity_save('gathercontent_operation', $operation);
$operations = array();
$nodes = node_load_multiple($form_state['selection']);
foreach ($nodes as $node) {
$operations[] = array(
'gathercontent_upload_process',
array(
$node,
$uuid,
),
);
}
$batch = array(
'title' => t('Uploading content ...'),
'operations' => $operations,
'finished' => 'gathercontent_upload_finished',
'init_message' => t('Upload is starting ...'),
'progress_message' => t('Processed @current out of @total.'),
'error_message' => t('An error occurred during processing'),
);
batch_set($batch);
}