function _domain_entity_update_entity_defaut_value in Domain Access Entity 7
Batch operation processing callback.
1 string reference to '_domain_entity_update_entity_defaut_value'
- domain_entity_types_enable_domain_field in ./domain_entity.module 
- Helper function to active domain field on bundles of entity types.
File
- ./domain_entity.module, line 866 
- Defines field (e.g. domain_entity) for entities, and access query alter.
Code
function _domain_entity_update_entity_defaut_value($entity_type, $entity_id, &$context) {
  $entity = entity_load_single($entity_type, $entity_id);
  if ($entity) {
    // Just call entity_save(), the hook domain_entity_entity_presave()
    // take care of the field domain default assignation(s), if nothing is set.
    entity_save($entity_type, $entity);
    $context['results'][] = $entity_type . ' - Id : ' . $entity_id . ' updated.';
    $context['message'] = t('Updated: %entity_type - ID : %entity_id.', array(
      '%entity_type' => $entity_type,
      '%entity_id' => $entity_id,
    ));
  }
}