function mailchimp_activity_load_entities in Mailchimp 7.5
Same name and namespace in other branches
- 7.2 modules/mailchimp_activity/mailchimp_activity.module \mailchimp_activity_load_entities()
- 7.3 modules/mailchimp_activity/mailchimp_activity.module \mailchimp_activity_load_entities()
- 7.4 modules/mailchimp_activity/mailchimp_activity.module \mailchimp_activity_load_entities()
Loads a single or multiple instances of MailChimpActivityEntity.
Parameters
string $name: Optional name of the MailChimpActivityEntity instance to load.
Return value
mixed Array of MailchimpActivityEntity instances or one instance if $name is set.
1 call to mailchimp_activity_load_entities()
- mailchimp_activity_menu in modules/
mailchimp_activity/ mailchimp_activity.module - Implements hook_menu().
1 string reference to 'mailchimp_activity_load_entities'
- mailchimp_activity_entity_form in modules/
mailchimp_activity/ includes/ mailchimp_activity.admin.inc - Returns a form for a mailchimp_activity_entity.
File
- modules/
mailchimp_activity/ mailchimp_activity.module, line 97 - Module file for mailchimp_activity.
Code
function mailchimp_activity_load_entities($name = NULL) {
$types = entity_load_multiple_by_name('mailchimp_activity_entity', isset($name) ? array(
$name,
) : FALSE);
return isset($name) ? reset($types) : $types;
}