function webform_modules_installed in Webform 8.5
Same name and namespace in other branches
- 6.x webform.module \webform_modules_installed()
Implements hook_modules_installed().
File
- ./
webform.module, line 83 - Enables the creation of webforms and questionnaires.
Code
function webform_modules_installed($modules) {
// Add webform paths when the path.module is being installed.
if (in_array('path', $modules)) {
/** @var \Drupal\webform\WebformInterface[] $webforms */
$webforms = Webform::loadMultiple();
foreach ($webforms as $webform) {
$webform
->updatePaths();
}
}
// Check HTML email provider support as modules are installed.
/** @var \Drupal\webform\WebformEmailProviderInterface $email_provider */
$email_provider = \Drupal::service('webform.email_provider');
$email_provider
->check();
}