function matrix_clear_cache_submit in Matrix field 7.2
Same name and namespace in other branches
- 8.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 483
Code
function matrix_clear_cache_submit(&$form, &$form_state) {
global $user;
cache_clear_all('matrix-cache-' . $user->uid, 'cache');
//TODO run this off the form token
}