You are here

function mailchimp_i18n_mailchimp_signup_update in Mailchimp 7.4

Same name and namespace in other branches
  1. 7.5 modules/mailchimp_i18n/mailchimp_i18n.module \mailchimp_i18n_mailchimp_signup_update()

Implements hook_mailchimp_signup_update().

File

modules/mailchimp_i18n/mailchimp_i18n.module, line 40
Mailchimp i18n integration module via entity API i18n support.

Code

function mailchimp_i18n_mailchimp_signup_update($mailchimp_signup) {

  // Account for machine name changes.
  if ($mailchimp_signup->original->name != $mailchimp_signup->name) {
    i18n_string_update_context("mailchimp_signup:mailchimp_signup:{$mailchimp_signup->original->name}:*", "mailchimp_signup:mailchimp_signup:{$mailchimp_signup->original->name->name}:*");
  }
  i18n_string_object_update('mailchimp_signup', $mailchimp_signup);
}