You are here

function hook_social_embed_formats_alter in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_embed/social_embed.api.php \hook_social_embed_formats_alter()
  2. 8.4 modules/social_features/social_embed/social_embed.api.php \hook_social_embed_formats_alter()
  3. 8.5 modules/social_features/social_embed/social_embed.api.php \hook_social_embed_formats_alter()
  4. 8.6 modules/social_features/social_embed/social_embed.api.php \hook_social_embed_formats_alter()
  5. 8.7 modules/social_features/social_embed/social_embed.api.php \hook_social_embed_formats_alter()
  6. 8.8 modules/social_features/social_embed/social_embed.api.php \hook_social_embed_formats_alter()
  7. 10.0.x modules/social_features/social_embed/social_embed.api.php \hook_social_embed_formats_alter()
  8. 10.1.x modules/social_features/social_embed/social_embed.api.php \hook_social_embed_formats_alter()
  9. 10.2.x modules/social_features/social_embed/social_embed.api.php \hook_social_embed_formats_alter()

Provide a method to alter the array of text formats with convert URLs filter.

Parameters

array $formats: List of text formats where a key is filter name and if a value is TRUE then the current format will use the filter for converting URLs.

See also

\Drupal\social_embed\SocialEmbedConfigOverrideBase::loadOverrides()

1 invocation of hook_social_embed_formats_alter()
SocialEmbedConfigOverride::loadOverrides in modules/social_features/social_embed/src/SocialEmbedConfigOverride.php
Returns config overrides.

File

modules/social_features/social_embed/social_embed.api.php, line 24
Hooks provided by the Social Embed module.

Code

function hook_social_embed_formats_alter(array &$formats) {
  $formats['basic_html'] = FALSE;
}