function activity_send_update_8002 in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 8.2 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 8.3 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 8.4 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 8.5 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 8.6 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 8.7 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 8.8 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 10.3.x modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 10.0.x modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 10.1.x modules/custom/activity_send/activity_send.install \activity_send_update_8002()
- 10.2.x modules/custom/activity_send/activity_send.install \activity_send_update_8002()
Reduce delay time for immediate email notification to 90 seconds.
File
- modules/custom/ activity_send/ activity_send.install, line 125 
- Installation code for the activity_send module.
Code
function activity_send_update_8002() {
  $config = \Drupal::configFactory()
    ->getEditable('activity_send.settings');
  if ($config
    ->get('activity_send_offline_window') == 900) {
    $config
      ->set('activity_send_offline_window', 90)
      ->save();
  }
}