function lingotek_set_batch_function in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.util.inc \lingotek_set_batch_function()
- 7.6 lingotek.util.inc \lingotek_set_batch_function()
Run a function that sets a batch
These are functions that set a batch to be processed at the next batch_process() call.
1 call to lingotek_set_batch_function()
- lingotek_admin_entity_bundle_profiles_form_submit in ./
lingotek.admin.inc - Node Translation Settings - Form Submit
File
- ./
lingotek.util.inc, line 1843 - Utility functions.
Code
function lingotek_set_batch_function($func_name) {
$functions = array(
'lingotek_function_node_languages' => 'lingotek_cleanup_field_languages_for_nodes',
'lingotek_function_identify_translations' => 'lingotek_batch_identify_translations',
);
if (module_exists('comment')) {
$functions['lingotek_function_comment_languages'] = 'lingotek_cleanup_field_languages_for_comments';
}
if (isset($functions[$func_name])) {
$functions[$func_name]();
}
}