function hook_social_follow_content_types_alter in Open Social 8.5
Same name and namespace in other branches
- 8.9 modules/social_features/social_follow_content/social_follow_content.api.php \hook_social_follow_content_types_alter()
- 8.4 modules/social_features/social_follow_content/social_follow_content.api.php \hook_social_follow_content_types_alter()
- 8.6 modules/social_features/social_follow_content/social_follow_content.api.php \hook_social_follow_content_types_alter()
- 8.7 modules/social_features/social_follow_content/social_follow_content.api.php \hook_social_follow_content_types_alter()
- 8.8 modules/social_features/social_follow_content/social_follow_content.api.php \hook_social_follow_content_types_alter()
- 10.3.x modules/social_features/social_follow_content/social_follow_content.api.php \hook_social_follow_content_types_alter()
- 10.0.x modules/social_features/social_follow_content/social_follow_content.api.php \hook_social_follow_content_types_alter()
- 10.1.x modules/social_features/social_follow_content/social_follow_content.api.php \hook_social_follow_content_types_alter()
- 10.2.x modules/social_features/social_follow_content/social_follow_content.api.php \hook_social_follow_content_types_alter()
Provide a method to alter the automatically follow content types.
Parameters
array $types: An array of content types.
2 functions implement hook_social_follow_content_types_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- social_event_social_follow_content_types_alter in modules/
social_features/ social_event/ social_event.module - Implements hook_social_follow_content_types_alter().
- social_topic_social_follow_content_types_alter in modules/
social_features/ social_topic/ social_topic.module - Implements hook_social_follow_content_types_alter().
1 invocation of hook_social_follow_content_types_alter()
- social_follow_content_comment_insert in modules/
social_features/ social_follow_content/ social_follow_content.module - Implements hook_ENTITY_TYPE_insert().
File
- modules/
social_features/ social_follow_content/ social_follow_content.api.php, line 19 - Hooks provided by the Social Follow Content module.
Code
function hook_social_follow_content_types_alter(array &$types) {
$types[] = 'topic';
}