You are here

function taxonomy_revision_taxonomy_form_term_submit_build_term in Taxonomy revision 7

Entity builder for the taxonomy term entity.

See also

taxonomy_revision_field_attach_form()

1 string reference to 'taxonomy_revision_taxonomy_form_term_submit_build_term'
taxonomy_revision_field_attach_form in ./taxonomy_revision.module
Implements hook_field_attach_form().

File

./taxonomy_revision.module, line 283
This is the main module file for the Taxonomy revision module.

Code

function taxonomy_revision_taxonomy_form_term_submit_build_term($entity_type, $entity, $form, $form_state) {
  switch ($entity_type) {
    case 'taxonomy_term':
      if (!empty($form_state['values']['revision']) || _taxonomy_revision_enabled_by_default($entity->vid)) {
        $entity->revision = TRUE;
        $entity->log = check_plain($form_state['values']['log']);
      }
      break;
  }
}