You are here

function node_registration_field_attach_submit in Node registration 7

Implements hook_field_attach_submit().

File

./node_registration.module, line 240

Code

function node_registration_field_attach_submit($entity_type, $entity, $form, $form_state) {
  if ($entity_type == 'node') {
    if (empty($entity->registration)) {
      module_load_include('inc', 'node_registration', 'includes/node_registration.node_settings');
      $entity->registration = new NodeRegistrationNodeSettings($entity);
    }
  }
}