You are here

function matrix_clear_cache_submit in Matrix field 8.2

Same name and namespace in other branches
  1. 7.2 matrix.module \matrix_clear_cache_submit()

Submit handler for settings form Clears the cache which is used for this field

1 string reference to 'matrix_clear_cache_submit'
matrix_form_field_ui_field_edit_form_alter in ./matrix.admin.inc
Implementation of hook_form_FORM_ID_alter()

File

./matrix.module, line 490
Contains matrix.module.

Code

function matrix_clear_cache_submit(&$form, &$form_state) {
  $user = \Drupal::currentUser();
  cache_clear_all('matrix-cache-' . $user->uid, 'cache');

  //TODO run this off the form token
}