1 filter.admin.inc | filter_admin_format_filter_settings_form_redirect_validate($form, &$form_state) |
Validation for filter "Configure" buttons in filter_admin_format_form().
File
- core/
modules/ filter/ filter.admin.inc, line 459 - Admin page callbacks for the Filter module.
Code
function filter_admin_format_filter_settings_form_redirect_validate($form, &$form_state) {
// Throw a form error if there is no machine name yet, as we need this to set
// up the URLs for settings forms.
if (empty($form_state['values']['format'])) {
form_set_error('format', t('Please enter a format name before configuring filter settings.'));
}
}