You are here

function cacheflush_ui_tab_validation in CacheFlush 7.3

Same name and namespace in other branches
  1. 8 modules/cacheflush_ui/cacheflush_ui.module \cacheflush_ui_tab_validation()

Callback form preset form validate.

1 string reference to 'cacheflush_ui_tab_validation'
cacheflush_ui_cacheflush_ui_tabs in modules/cacheflush_ui/cacheflush_ui.module
Implements hook_cacheflush_ui_tabs().

File

modules/cacheflush_ui/includes/cacheflush_ui.presets.inc, line 61
Contains the CacheflushUI forms function.

Code

function cacheflush_ui_tab_validation($tab, &$form, &$form_state) {
  if (isset($form_state['values'][$tab])) {
    foreach ($form_state['values'][$tab] as $preset => $value) {
      if ($value) {
        $form_state['cacheflush']->data[$preset]['functions'] = $form_state['#preset_options'][$preset]['functions'];
      }
    }
  }
}