function mailchimp_signup_load_multiple_by_name in Mailchimp 7.3
Same name and namespace in other branches
- 7.5 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load_multiple_by_name()
- 7.4 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load_multiple_by_name()
Gets an array of all Signups, keyed by the list name.
Parameters
string $name: If set, the signup with the given name is returned.
Return value
MailchimpSignup[] Depending whether $name isset, an array of signups or a single one.
1 string reference to 'mailchimp_signup_load_multiple_by_name'
- mailchimp_signup_form in modules/
mailchimp_signup/ includes/ mailchimp_signup.admin.inc - Return a form for adding/editing a MailChimp signup form.
File
- modules/
mailchimp_signup/ mailchimp_signup.module, line 161 - Mailchimp Signup module. Allows creation of signup forms integrated with Mailchimp.
Code
function mailchimp_signup_load_multiple_by_name($name = NULL) {
$signups = entity_load_multiple_by_name('mailchimp_signup', isset($name) ? array(
$name,
) : FALSE);
return isset($name) ? reset($signups) : $signups;
}