You are here

function _d8cache_block_admin_configure_submit in Drupal 8 Cache Backport 7

Submit handler for block_admin_configure form.

1 string reference to '_d8cache_block_admin_configure_submit'
d8cache_form_block_admin_configure_alter in includes/block.inc
Implements hook_form_FORM_ID_alter().

File

includes/block.inc, line 95
Block functions and hooks for the D8 caching system backport.

Code

function _d8cache_block_admin_configure_submit($form, $form_state) {
  if (!form_get_errors()) {

    // Create a pseudo block.
    $block = (object) $form_state['values'];
    drupal_invalidate_cache_tags(_d8cache_block_get_cache_tags($block));
  }
}