You are here

function mailchimp_signup_tt in Mailchimp 7.5

Same name and namespace in other branches
  1. 7.3 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_tt()
  2. 7.4 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_tt()

Wrapper function for i18n_string() if i18nstrings enabled.

2 calls to mailchimp_signup_tt()
mailchimp_signup_subscribe_form in modules/mailchimp_signup/mailchimp_signup.module
Returns a subscription form for mailchimp lists/audiences.
mailchimp_signup_subscribe_form_submit in modules/mailchimp_signup/mailchimp_signup.module
Submit handler to add users to lists/audiences on subscription form submission.

File

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

Code

function mailchimp_signup_tt($name, $string, $langcode = NULL, $update = FALSE) {
  if (function_exists('i18n_string')) {
    $options = array(
      'langcode' => $langcode,
      'update' => $update,
    );
    return i18n_string($name, $string, $options);
  }
  else {
    return $string;
  }
}