function _i18n_string_batch_refresh_callback in Internationalization 7
Batch operation: Invoke i18n_string_refresh
1 string reference to '_i18n_string_batch_refresh_callback'
- i18n_string_refresh_batch in i18n_string/
i18n_string.admin.inc - Create batch for refreshing strings
File
- i18n_string/
i18n_string.admin.inc, line 232 - Helper functions for string administration.
Code
function _i18n_string_batch_refresh_callback($group, &$context) {
$result = module_invoke_all('i18n_string_refresh', $group);
$count = $result ? array_sum($result) : 0;
$context['results'][$group]['refresh'] += $count;
if ($count) {
$context['results'][$group]['result'] = TRUE;
}
}