function css_injector_edit_validate in CSS Injector 7.2
Same name and namespace in other branches
- 6 css_injector.admin.inc \css_injector_edit_validate()
- 7 css_injector.admin.inc \css_injector_edit_validate()
Validation callback for the CSS rule edit form.
File
- ./
css_injector.admin.inc, line 210 - css_injector.admin.inc Administrative interface for CSS Injector.
Code
function css_injector_edit_validate($form, &$form_state) {
$directory = drupal_realpath('public://css_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,
)));
}
}