You are here

function mailchimp_signup_entity_delete in Mailchimp 7.5

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

Implements hook_entity_delete().

File

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

Code

function mailchimp_signup_entity_delete($entity, $type) {
  if ($type == 'mailchimp_signup') {
    if ($entity->mode & MAILCHIMP_SIGNUP_PAGE) {
      menu_rebuild();
    }
  }
}