function i18n_translation_set_build in Internationalization 7
Build a translation set from type, data
4 calls to i18n_translation_set_build()
- I18nTranslationSetController::attachLoad in i18n_translation/
i18n_translation.module - Builds objects of specific classes upon loading.
- i18n_menu_translation_form in i18n_menu/
i18n_menu.admin.inc - Produces a menu translation form.
- i18n_translation_object in i18n_translation/
i18n_translation.module - Get translation set for object
- i18n_translation_set_create in i18n_translation/
i18n_translation.module - Create a new translation set
File
- i18n_translation/
i18n_translation.module, line 252 - Internationalization (i18n) module - Entity translations
Code
function i18n_translation_set_build($type, $data = array()) {
$class = i18n_translation_set_info($type, 'class', 'i18n_translation_set');
$set = new $class((array) $data);
$set->type = $type;
return $set;
}