You are here

function multiple_email_entity_create in Multiple E-mail Addresses 7

Same name and namespace in other branches
  1. 2.x multiple_email.module \multiple_email_entity_create()

Creation callback for multiple_email entities.

1 string reference to 'multiple_email_entity_create'
multiple_email_entity_info in ./multiple_email.module
Implements hook_entity_info().

File

./multiple_email.module, line 937
multiple_email module file

Code

function multiple_email_entity_create($values) {
  $email = (object) array();
  foreach ($values as $key => $value) {
    $email->{$key} = $value;
  }
  return $email;
}