public function EntityTranslationTaxonomyTermHandler::entityForm in Entity Translation 7
Overrides EntityTranslationDefaultHandler::entityForm
See also
EntityTranslationDefaultHandler::entityForm()
File
- includes/
translation.handler.taxonomy_term.inc, line 39 - Taxonomy term translation handler for the entity translation module.
Class
- EntityTranslationTaxonomyTermHandler
- Taxonomy term translation handler.
Code
public function entityForm(&$form, &$form_state) {
parent::entityForm($form, $form_state);
// Remove the translation fieldset when the deletion confirm form is being
// displayed.
if (isset($form_state['confirm_delete'])) {
unset($form[$this
->getLanguageKey()], $form['source_language'], $form['translation'], $form['actions']['delete_translation']);
}
}