function i18n_translation_set_create in Internationalization 7
Create a new translation set
3 calls to i18n_translation_set_create()
- i18n_path_admin_form_submit in i18n_path/
i18n_path.admin.inc - Process form submission
- i18n_taxonomy_translation_term_form_submit in i18n_taxonomy/
i18n_taxonomy.admin.inc - Form callback: Process vocabulary translation form.
- i18n_taxonomy_update_7000 in i18n_taxonomy/
i18n_taxonomy.install - Set vocabulary modes from D6 variable
File
- i18n_translation/
i18n_translation.module, line 262 - Internationalization (i18n) module - Entity translations
Code
function i18n_translation_set_create($type, $bundle = '', $translations = NULL, $master_id = 0) {
$set = i18n_translation_set_build($type, array(
'type' => $type,
'bundle' => $bundle,
'master_id' => $master_id,
'translations' => $translations,
));
$set
->insert();
return $set;
}