You are here

function localize_fields_flush_caches in Localize Fields 7

Doesn't provide any cache table names, only implements hook_flush_caches to detect cache flushing.

Implements hook_flush_caches(). D8: consider hook_rebuild().

Return value

array

See also

localize_fields_enable()

File

./localize_fields.module, line 282
Drupal Localize Fields module

Code

function localize_fields_flush_caches() {

  // In old versions of PHP (5.3.3) get_html_translation_table()
  // doesn't reflect the actually used table by htmlspecialchars() et al.
  // Observed: ' versus '
  $entities_raw = array(
    '"',
    "'",
  );
  $entities_encoded = array();
  foreach ($entities_raw as $entity) {
    $entities_encoded[] = check_plain($entity);
  }
  variable_set('localize_fields_entsencoded', $entities_encoded);

  // Satisfy return value contract with hook_flush_caches().
  return array();
}