You are here

function social_like_update_8005 in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_like/social_like.install \social_like_update_8005()
  2. 8 modules/social_features/social_like/social_like.install \social_like_update_8005()
  3. 8.2 modules/social_features/social_like/social_like.install \social_like_update_8005()
  4. 8.3 modules/social_features/social_like/social_like.install \social_like_update_8005()
  5. 8.4 modules/social_features/social_like/social_like.install \social_like_update_8005()
  6. 8.5 modules/social_features/social_like/social_like.install \social_like_update_8005()
  7. 8.7 modules/social_features/social_like/social_like.install \social_like_update_8005()
  8. 8.8 modules/social_features/social_like/social_like.install \social_like_update_8005()
  9. 10.3.x modules/social_features/social_like/social_like.install \social_like_update_8005()
  10. 10.0.x modules/social_features/social_like/social_like.install \social_like_update_8005()
  11. 10.1.x modules/social_features/social_like/social_like.install \social_like_update_8005()
  12. 10.2.x modules/social_features/social_like/social_like.install \social_like_update_8005()

Enable deleting likes from a database when a user is deleted.

File

modules/social_features/social_like/social_like.install, line 57
Install, update and uninstall functions for the social_like module.

Code

function social_like_update_8005() {
  \Drupal::configFactory()
    ->getEditable('votingapi.settings')
    ->set('delete_everywhere', TRUE)
    ->save();
}