@@ 1354-1360 (lines=7) @@ | ||
1351 | /** @var EE_message_type[] $installed_mts */ |
|
1352 | $settings_fields = $installed_mts[$mt]->get_admin_settings_fields(); |
|
1353 | $settings = array(); |
|
1354 | if ( is_array( $settings_fields ) ) { |
|
1355 | foreach ( $settings_fields as $field => $values ) { |
|
1356 | if ( isset( $values['default'] ) ) { |
|
1357 | $settings[$field] = $values['default']; |
|
1358 | } |
|
1359 | } |
|
1360 | } |
|
1361 | ||
1362 | $active_messengers[$messenger]['settings'][$messenger . '-message_types'][$mt]['settings'] = $settings; |
|
1363 | $has_activated[$messenger][] = $mt; |
|
@@ 1410-1416 (lines=7) @@ | ||
1407 | ||
1408 | $settings_fields = $installed_mts[$mt]->get_admin_settings_fields(); |
|
1409 | $settings = array(); |
|
1410 | if ( is_array( $settings_fields ) ) { |
|
1411 | foreach ( $settings_fields as $field => $values ) { |
|
1412 | if ( isset( $values['default'] ) ) { |
|
1413 | $settings[$field] = $values['default']; |
|
1414 | } |
|
1415 | } |
|
1416 | } |
|
1417 | ||
1418 | $active_messengers[$messenger]['settings'][$messenger . '-message_types'][$mt]['settings'] = $settings; |
|
1419 | $new_default_mts[] = $mt; |