social_embed.api.php in Open Social 8.7
Same filename and directory in other branches
- 8.9 modules/social_features/social_embed/social_embed.api.php
- 8.4 modules/social_features/social_embed/social_embed.api.php
- 8.5 modules/social_features/social_embed/social_embed.api.php
- 8.6 modules/social_features/social_embed/social_embed.api.php
- 8.8 modules/social_features/social_embed/social_embed.api.php
- 10.3.x modules/social_features/social_embed/social_embed.api.php
- 10.0.x modules/social_features/social_embed/social_embed.api.php
- 10.1.x modules/social_features/social_embed/social_embed.api.php
- 10.2.x modules/social_features/social_embed/social_embed.api.php
Hooks provided by the Social Embed module.
File
modules/social_features/social_embed/social_embed.api.phpView source
<?php
/**
* @file
* Hooks provided by the Social Embed module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Provide a method to alter the array of text formats with convert URLs filter.
*
* @param 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.
*
* @ingroup social_embed_api
*
* @see \Drupal\social_embed\SocialEmbedConfigOverrideBase::loadOverrides()
*/
function hook_social_embed_formats_alter(array &$formats) {
$formats['basic_html'] = FALSE;
}
/**
* @} End of "addtogroup hooks".
*/
Functions
Name | Description |
---|---|
hook_social_embed_formats_alter | Provide a method to alter the array of text formats with convert URLs filter. |