You are here

function entity_translation_unified_form_form_node_type_form_submit in Entity Translation Unified Form 7

Same name and namespace in other branches
  1. 8 entity_translation_unified_form.module \entity_translation_unified_form_form_node_type_form_submit()

Submit handler. Sets content type-specific variable that is used to determine whether or not the content type may used unified forms.

1 string reference to 'entity_translation_unified_form_form_node_type_form_submit'
entity_translation_unified_form_form_node_type_form_alter in ./entity_translation_unified_form.module
Implements hook_form_FORM_ID_alter().

File

./entity_translation_unified_form.module, line 49
Places entity translated fields inline in a single form.

Code

function entity_translation_unified_form_form_node_type_form_submit(&$form, $form_state) {
  variable_set('entity_translation_unified_form_enable_' . $form['#node_type']->type, $form_state['values']['entity_translation_unified_form_enable']);
}