function multiple_email_user_emails_property_get in Multiple E-mail Addresses 7
Same name and namespace in other branches
- 2.x multiple_email.module \multiple_email_user_emails_property_get()
Getter callback for multiple_email property.
1 string reference to 'multiple_email_user_emails_property_get'
File
- ./
multiple_email.module, line 924 - multiple_email module file
Code
function multiple_email_user_emails_property_get($user, array $options, $name, $entity_type) {
$query = new EntityFieldQuery();
$query
->entityCondition('entity_type', 'multiple_email')
->propertyCondition('uid', $user->uid);
$result = $query
->execute();
$result += array(
'multiple_email' => array(),
);
$entity_ids = array_keys($result['multiple_email']);
return $entity_ids;
}