function key_config_delete_confirm_validate in Key 7.3
Form validate handler for key_config_delete_confirm().
File
- includes/
key.admin.inc, line 457 - Administrative functionality for managing key configurations.
Code
function key_config_delete_confirm_validate($form, &$form_state) {
$id = isset($form_state['values']['id']) ? $form_state['values']['id'] : NULL;
// Load the configuration.
$config = key_get_key($id);
// Allow the plugins to perform additional validation.
foreach (_key_get_plugin_types() as $type) {
$plugin = key_get_plugin($type, $config[$type]);
if ($validate_form_function = ctools_plugin_get_function($plugin, 'validate delete form')) {
$validate_form_function($form, $form_state, $config);
}
}
}