You are here

function oembed_flush_caches in oEmbed 7

Same name and namespace in other branches
  1. 7.0 oembed.module \oembed_flush_caches()

Implements hook_flush_caches().

File

./oembed.module, line 66
Core functionality for oEmbed

Code

function oembed_flush_caches() {

  // Because some oEmbed providers (e.g., http://embed.ly) charge per request,
  // allow cache_oembed to opt out of drupal_flush_all_caches() clearing.
  if (variable_get('oembed_cache_flush', TRUE)) {
    return array(
      'cache_oembed',
    );
  }
}