You are here

function activity_send_update_8002 in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  2. 8 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  3. 8.2 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  4. 8.3 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  5. 8.4 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  6. 8.5 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  7. 8.6 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  8. 8.7 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  9. 8.8 modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  10. 10.3.x modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  11. 10.0.x modules/custom/activity_send/activity_send.install \activity_send_update_8002()
  12. 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();
  }
}