function js_injector_edit_validate in JS injector 7
Same name and namespace in other branches
- 6.2 js_injector.admin.inc \js_injector_edit_validate()
- 6 js_injector.admin.inc \js_injector_edit_validate()
Validation callback for the JS rule edit form.
File
- ./
js_injector.admin.inc, line 210 - js_injector.admin.inc Administrative interface for JS Injector.
Code
function js_injector_edit_validate($form, &$form_state) {
$directory = drupal_realpath('public://js_injector');
if (!file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS)) {
form_error($form, t('The directory %directory is not writable', array(
'%directory' => $directory,
)));
}
}