function drush_lingotek_prepare_item in Lingotek Translation 7.7
Parameters
$config_groups: array: of the form ('menu' => 'menu)
$variable: name of a drupal variable to set.
3 calls to drush_lingotek_prepare_item()
- drush_lingotek_prepare_blocks in ./
lingotek.drush.inc - Callback function for drush command lt-prepare-blocks
- drush_lingotek_prepare_menus in ./
lingotek.drush.inc - Callback function for drush command lt-prepare-menus
- drush_lingotek_prepare_vocab in ./
lingotek.drush.inc - Callback function for drush command lt-prepare-taxonomies
File
- ./
lingotek.drush.inc, line 260 - Drush command file
Code
function drush_lingotek_prepare_item($config_groups, $variable) {
try {
// refresh all strings for this config type
// combine string refresh operations with other additional operations
$config_refresh_batch = i18n_string_refresh_batch($config_groups, $delete = FALSE);
lingotek_admin_setup_nonbuiltins_batch($config_refresh_batch['operations']);
drush_backend_batch_process();
variable_set($variable, 1);
} catch (Exception $e) {
throw $e;
}
}