Last active
August 29, 2015 14:07
-
-
Save vijaycs85/6d9bfdd635e98a7fcefa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// D7 | |
// variable_get('webform_default_from_address', variable_get('site_mail', ini_get('sendmail_from'))); | |
// D8 | |
$site_default = config('system.site')->get('mail', ini_get('sendmail_from')); | |
config('webform.settings')->get('default_from', $site_default); | |
// webform.install | |
function webform_install() { | |
$site_default = config('system.site')->get('mail', ini_get('sendmail_from')); | |
config('webform.settings')->set('default_from', $site_default)->save(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment