function multiple_email_entity_create in Multiple E-mail Addresses 2.x
Same name and namespace in other branches
- 7 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 897 - multiple_email module file
Code
function multiple_email_entity_create($values) {
$email = (object) array();
foreach ($values as $key => $value) {
$email->{$key} = $value;
}
return $email;
}