function social_tagging_update_8004 in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_tagging/social_tagging.install \social_tagging_update_8004()
- 10.0.x modules/social_features/social_tagging/social_tagging.install \social_tagging_update_8004()
- 10.1.x modules/social_features/social_tagging/social_tagging.install \social_tagging_update_8004()
Toggle user index.
File
- modules/
social_features/ social_tagging/ social_tagging.install, line 116 - Installation file for Social Tagging.
Code
function social_tagging_update_8004() {
// Update field definitions.
_social_tagging_field_definitions_update();
// Toggle the index users.
try {
// If the search module is enabled we need to update the group index.
if (\Drupal::moduleHandler()
->moduleExists('social_search')) {
social_search_resave_search_indexes([
'social_users',
]);
}
} catch (EntityStorageException $e) {
\Drupal::logger('social_tagging')
->info($e
->getMessage());
}
}