@@ 257-261 (lines=5) @@ | ||
254 | unset( $this->_active_messengers[$active_name] ); |
|
255 | } |
|
256 | } else { |
|
257 | foreach( $active_messengers as $messenger => $settings ) { |
|
258 | if ( ! empty( $settings['settings'][$messenger . '-message_types'][$active_name] ) ) { |
|
259 | unset( $active_messengers[$messenger]['settings'][$messenger . '-message_types'][$active_name] ); |
|
260 | } |
|
261 | } |
|
262 | EEH_MSG_Template::update_to_inactive( '', $active_name ); |
|
263 | if ( isset( $this->_active_message_types[$active_name] ) ) { |
|
264 | unset( $this->_active_message_types[$active_name] ); |
@@ 148-152 (lines=5) @@ | ||
145 | //let's make sure that we remove any place this message type was made active |
|
146 | EE_Registry::instance()->load_helper( 'MSG_Template' ); |
|
147 | $active_messengers = EEH_MSG_Template::get_active_messengers_in_db(); |
|
148 | foreach( $active_messengers as $messenger => $settings ) { |
|
149 | if ( !empty( $settings['settings'][$messenger . '-message_types'][$mt_name] ) ) { |
|
150 | unset( $active_messengers[$messenger]['settings'][$messenger . '-message_types'][$mt_name] ); |
|
151 | } |
|
152 | } |
|
153 | EEH_MSG_Template::update_to_inactive( '', $mt_name ); |
|
154 | EEH_MSG_Template::update_active_messengers_in_db( $active_messengers ); |
|
155 | unset( self::$_ee_message_type_registry[$mt_name] ); |