@@ 3040-3047 (lines=8) @@ | ||
3037 | foreach( $message_types_to_activate as $message_type_name ) { |
|
3038 | /** @var EE_message_type $message_type */ |
|
3039 | $message_type = $this->_message_resource_manager->get_message_type( $message_type_name ); |
|
3040 | if ( $this->_message_resource_manager->is_message_type_active_for_messenger( $messenger_name, $message_type_name ) |
|
3041 | && $message_type instanceof EE_message_type |
|
3042 | ) { |
|
3043 | $this->_template_args['data']['active_mts'][] = $message_type_name; |
|
3044 | if ( $message_type->get_admin_settings_fields() ) { |
|
3045 | $this->_template_args['data']['mt_reload'][] = $message_type_name; |
|
3046 | } |
|
3047 | } |
|
3048 | } |
|
3049 | ||
3050 | //add success message for activating messenger |
|
@@ 3087-3092 (lines=6) @@ | ||
3084 | $this->_message_resource_manager->activate_messenger( $messenger_name, $message_type_name ); |
|
3085 | ||
3086 | //set response for load |
|
3087 | if ( $this->_message_resource_manager->is_message_type_active_for_messenger( $messenger_name, $message_type_name ) ) { |
|
3088 | $this->_template_args['data']['active_mts'][] = $message_type_name; |
|
3089 | if ( $message_type_to_activate->get_admin_settings_fields() ) { |
|
3090 | $this->_template_args['data']['mt_reload'][] = $message_type_name; |
|
3091 | } |
|
3092 | } |
|
3093 | return $this->_setup_response_message_for_activating_messenger_with_message_types( $active_messenger, $message_type_to_activate ); |
|
3094 | } |
|
3095 |