core/helpers/EEH_Activation.helper.php 1 location
|
@@ 1356-1360 (lines=5) @@
|
| 1353 |
|
//setup any initial settings for the messenger |
| 1354 |
|
$msgr_settings = $installed_messengers[$messenger]->get_admin_settings_fields(); |
| 1355 |
|
|
| 1356 |
|
if ( !empty( $msgr_settings ) ) { |
| 1357 |
|
foreach ( $msgr_settings as $field => $value ) { |
| 1358 |
|
$active_messengers[$messenger]['settings'][$field] = $value; |
| 1359 |
|
} |
| 1360 |
|
} |
| 1361 |
|
|
| 1362 |
|
//now let's save the settings for this messenger! Must do now because the validator checks the db for active messengers to validate. |
| 1363 |
|
EEH_MSG_Template::update_active_messengers_in_db( $active_messengers ); |
admin_pages/messages/Messages_Admin_Page.core.php 1 location
|
@@ 2849-2853 (lines=5) @@
|
| 2846 |
|
//any default settings for the messenger? |
| 2847 |
|
$msgr_settings = $this->_active_messengers[$messenger]['obj']->get_admin_settings_fields(); |
| 2848 |
|
|
| 2849 |
|
if ( !empty( $msgr_settings ) ) { |
| 2850 |
|
foreach ( $msgr_settings as $field => $value ) { |
| 2851 |
|
$this->_active_messengers[$messenger]['settings'][$field] = $value; |
| 2852 |
|
} |
| 2853 |
|
} |
| 2854 |
|
|
| 2855 |
|
//update settings in database |
| 2856 |
|
EEH_MSG_Template::update_active_messengers_in_db( $this->_active_messengers ); |
core/libraries/messages/EE_messages.lib.php 1 location
|
@@ 280-284 (lines=5) @@
|
| 277 |
|
//setup any initial settings for the messenger |
| 278 |
|
$msgr_settings = $messenger->get_admin_settings_fields(); |
| 279 |
|
|
| 280 |
|
if ( !empty( $msgr_settings ) ) { |
| 281 |
|
foreach ( $msgr_settings as $field => $value ) { |
| 282 |
|
$active_messengers[ $messenger->name ][ 'settings' ][ $field ] = $value; |
| 283 |
|
} |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
EEH_MSG_Template::update_active_messengers_in_db( $active_messengers ); |
| 287 |
|
update_option( 'ee_has_activated_messenger', $has_activated ); |