You are here

function brightcove_flush_caches in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.module \brightcove_flush_caches()
  2. 7.3 brightcove.module \brightcove_flush_caches()
  3. 7.4 brightcove.module \brightcove_flush_caches()
  4. 7.5 brightcove.module \brightcove_flush_caches()

Implements hook_flush_caches().

File

./brightcove.module, line 3175
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

function brightcove_flush_caches() {

  // If a user updates the module from an older version which is not include the cache table,
  // the update method will be broken, because the system will try to flush the cache from the
  // unexisting table as well.
  $tables = db_table_exists('cache_brightcove') ? [
    'cache_brightcove',
  ] : [];
  return $tables;
}