public function CacheflushUIController::overviewFormValidate in CacheFlush 7.3
Overrides EntityDefaultUIController::overviewFormSubmit().
Overrides EntityDefaultUIController::overviewFormValidate
File
- modules/
cacheflush_ui/ includes/ cacheflush_ui.class.inc, line 129 - Contains the CacheflushUIController class.
Class
- CacheflushUIController
- Custom controller for the administrator UI.
Code
public function overviewFormValidate($form, &$form_state) {
// Error if there are no items to select.
if (isset($form_state['clicked_button']['#value']) && $form_state['clicked_button']['#name'] == 'op-submit' && (!is_array($form_state['values']['presets']) || !count(array_filter($form_state['values']['presets'])))) {
form_set_error('', t('No items selected.'));
}
}