function recipe_index_settings_form_validate in Recipe 6
File
- ./
recipe.admin.inc, line 165 - recipe.admin.inc -contains all admin pages, settings, and validate.
Code
function recipe_index_settings_form_validate($form, &$form_state) {
if ($form_state['values']['recipe_index_depth'] <= 0) {
form_set_error('recipe_index_depth', t("You must select a 'Term depth'."));
}
}