function spamicide_admin_add_form_id_validate in Spamicide 5
Implementation of hook_form_validate
_values
Parameters
$form:
File
- ./
spamicide.module, line 285 - This module provides yet another tool to eliminate spam.
Code
function spamicide_admin_add_form_id_validate($form, $form_values) {
if (!file_check_directory(file_directory_path())) {
$err_link = l("Site Configuration > File system", "admin/settings/file-system", array());
form_set_error('spamicide_forms][' . $spamicide_form_id . '][form_field', t("The files directory either doesn't exist or is not writable, please go to " . $err_link . " to fix this and try again"));
}
}