function party_get_attached_entities in Party 8.2
Return all attached entities of a particular set.
Parameters
$party: The party object of the party we're concerned with.
$set_name: The set type as defined in hook_party_data_set_info().
$create: Choose to create an entity if there isn't already at least one.
Return value
An array of the attached entity controllers for the entities attached to the party in the given data set, keyed by attached entity delta.
6 calls to party_get_attached_entities()
- party_attached_entity_content_type_render in plugins/
content_types/ attached_entity/ attached_entity.inc - Render the custom content type.
- party_attached_entity_from_party_context in plugins/
relationships/ attached_entity_from_party.inc - Return a new context based on an existing context.
- party_profile_party_view_profile_set in modules/
party_profile/ party_profile.pages.inc - Page callback for our data set-based party pieces.
- party_user_user_from_party_context in modules/
party_user/ plugins/ relationships/ user_from_party.inc - Return a new context based on an existing context.
- party_user_user_update in modules/
party_user/ party_user.module - Implements hook_user_update().
File
- ./
party.module, line 990 - Provides a generic CRM party entity.
Code
function party_get_attached_entities($party, $data_set_name, $create = FALSE) {
$data_set_controller = party_get_data_set($party, $data_set_name, $create);
return $data_set_controller
->getEntities();
}