You are here

function mailchimp_signup_load in Mailchimp 7.5

Same name and namespace in other branches
  1. 8 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load()
  2. 7.3 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load()
  3. 7.4 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load()
  4. 2.x modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load()

Wrapper around mailchimp_signup_load_multiple to load a single signup entity.

3 calls to mailchimp_signup_load()
mailchimp_signup_block_view in modules/mailchimp_signup/mailchimp_signup.module
Implements hook_block_view().
mailchimp_signup_page in modules/mailchimp_signup/mailchimp_signup.module
Menu callback for Signup pages.
mailchimp_signup_title in modules/mailchimp_signup/mailchimp_signup.module
callback function for translatable title

File

modules/mailchimp_signup/mailchimp_signup.module, line 142
Mailchimp Signup module. Allows creation of signup forms integrated with Mailchimp.

Code

function mailchimp_signup_load($signup_id) {
  $signups = mailchimp_signup_load_multiple(array(
    $signup_id,
  ));
  if ($signups) {
    return reset($signups);
  }
  else {
    return FALSE;
  }
}