@@ 167-171 (lines=5) @@ | ||
164 | //let's make sure that we remove any place this message type was made active |
|
165 | EE_Registry::instance()->load_helper( 'MSG_Template' ); |
|
166 | $active_messengers = EEH_MSG_Template::get_active_messengers_in_db(); |
|
167 | foreach( $active_messengers as $messenger => $settings ) { |
|
168 | if ( !empty( $settings['settings'][$messenger . '-message_types'][$message_type_name] ) ) { |
|
169 | unset( $active_messengers[$messenger]['settings'][$messenger . '-message_types'][$message_type_name] ); |
|
170 | } |
|
171 | } |
|
172 | EEH_MSG_Template::update_to_inactive( '', $message_type_name ); |
|
173 | EEH_MSG_Template::update_active_messengers_in_db( $active_messengers ); |
|
174 | unset( self::$_ee_message_type_registry[$message_type_name] ); |
@@ 371-375 (lines=5) @@ | ||
368 | unset( $this->_active_messengers[$active_name] ); |
|
369 | } |
|
370 | } else { |
|
371 | foreach( $active_messengers as $messenger => $settings ) { |
|
372 | if ( ! empty( $settings['settings'][$messenger . '-message_types'][$active_name] ) ) { |
|
373 | unset( $active_messengers[$messenger]['settings'][$messenger . '-message_types'][$active_name] ); |
|
374 | } |
|
375 | } |
|
376 | EEH_MSG_Template::update_to_inactive( '', $active_name ); |
|
377 | if ( isset( $this->_active_message_types[$active_name] ) ) { |
|
378 | unset( $this->_active_message_types[$active_name] ); |