function entity_translation_unified_form_form_node_type_form_alter in Entity Translation Unified Form 8
Same name and namespace in other branches
- 7 entity_translation_unified_form.module \entity_translation_unified_form_form_node_type_form_alter()
Implements hook_form_FORM_ID_alter().
Add checkbox to node type form to set whether or not the node type should enable unified forms.
File
- ./
entity_translation_unified_form.module, line 101
Code
function entity_translation_unified_form_form_node_type_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['#process'][] = 'entity_translation_unified_form_form_node_type_form_process';
$form['actions']['submit']['#submit'][] = 'entity_translation_unified_form_form_node_type_form_submit';
}