@@ 1336-1342 (lines=7) @@ | ||
1333 | /** @var EE_message_type[] $installed_mts */ |
|
1334 | $settings_fields = $installed_mts[$mt]->get_admin_settings_fields(); |
|
1335 | $settings = array(); |
|
1336 | if ( is_array( $settings_fields ) ) { |
|
1337 | foreach ( $settings_fields as $field => $values ) { |
|
1338 | if ( isset( $values['default'] ) ) { |
|
1339 | $settings[$field] = $values['default']; |
|
1340 | } |
|
1341 | } |
|
1342 | } |
|
1343 | ||
1344 | $active_messengers[$messenger]['settings'][$messenger . '-message_types'][$mt]['settings'] = $settings; |
|
1345 | $has_activated[$messenger][] = $mt; |
|
@@ 1392-1398 (lines=7) @@ | ||
1389 | ||
1390 | $settings_fields = $installed_mts[$mt]->get_admin_settings_fields(); |
|
1391 | $settings = array(); |
|
1392 | if ( is_array( $settings_fields ) ) { |
|
1393 | foreach ( $settings_fields as $field => $values ) { |
|
1394 | if ( isset( $values['default'] ) ) { |
|
1395 | $settings[$field] = $values['default']; |
|
1396 | } |
|
1397 | } |
|
1398 | } |
|
1399 | ||
1400 | $active_messengers[$messenger]['settings'][$messenger . '-message_types'][$mt]['settings'] = $settings; |
|
1401 | $new_default_mts[] = $mt; |