You are here

public function RegistrationTypeController::export in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 lib/registration_type.controller.inc \RegistrationTypeController::export()
  2. 7 lib/registration_type.controller.inc \RegistrationTypeController::export()

Overridden.

Overrides EntityAPIControllerExportable::export

File

lib/registration_type.controller.inc, line 12
The controller class used for registration type entities

Class

RegistrationTypeController
@file The controller class used for registration type entities

Code

public function export($entity, $prefix = '') {

  // Ensure our data properties are properly structured.
  $data_properties = array(
    'held_expire',
    'held_expire_state',
  );
  foreach ($data_properties as $data_property) {
    if (isset($entity->{$data_property})) {
      $entity->data[$data_property] = $entity->{$data_property};
      unset($entity->{$data_property});
    }
  }
  return parent::export($entity, $prefix);
}