function _evoc_install_batch_process in RDF Extensions 7.2
1 string reference to '_evoc_install_batch_process'
- evoc_import_core in evoc/
evoc.pages.inc - Provide a callback for batch importing the vocabularies used in core.
File
- evoc/
evoc.pages.inc, line 131 - Page callbacks for importing a vocabulary.
Code
function _evoc_install_batch_process($namespace_uri, $prefix, &$context) {
if (!isset($context['sandbox']['progress'])) {
$context['sandbox']['progress'] = 0;
$context['message'] = t('Downloading %prefix', array(
'%prefix' => $prefix,
));
$context['finished'] = 0;
return;
}
evoc_import_vocabulary($namespace_uri, $prefix);
// Store result for post-processing in the finished callback.
$context['results'][] = $prefix;
// Update our progress information.
$context['sandbox']['progress']++;
$context['finished'] = 1;
}