function flag_properties_get_flagging_users in Flag 7.3
Getter callback that returns users who flagged the given entity.
1 string reference to 'flag_properties_get_flagging_users'
- flag_entity_property_info_alter in ./
flag.info.inc - Implements hook_entity_property_info_alter().
File
- ./
flag.module, line 2650 - The Flag module.
Code
function flag_properties_get_flagging_users($entity, array $options, $name, $entity_type, $property_info) {
list($entity_id, ) = entity_extract_ids($entity_type, $entity);
$flagging_data = flag_get_entity_flags($entity_type, $entity_id, $property_info['flag_name']);
return array_keys($flagging_data);
}