function lockr_admin_csr_validate in Lockr 7.2
1 string reference to 'lockr_admin_csr_validate'
- lockr_admin_csr_form in include/
csr_form.inc - Returns form array for CSR settings.
File
- include/
csr_form.inc, line 77 - Form handlers for CSR admin settings.
Code
function lockr_admin_csr_validate($form, &$form_state) {
if (!is_dir(variable_get('file_private_path', ''))) {
form_set_error('', format_string('File private path is not a directory, ' . 'please <a href="@link">update the private file system path</a>. ' . 'Preferrably to a location outside the webroot.', array(
'@link' => '/admin/config/media/file-system',
)));
}
}