You are here

function css_injector_edit_validate in CSS Injector 7

Same name and namespace in other branches
  1. 6 css_injector.admin.inc \css_injector_edit_validate()
  2. 7.2 css_injector.admin.inc \css_injector_edit_validate()

Validation callback for the CSS rule edit form.

File

./css_injector.admin.inc, line 277
css_injector.admin.inc Administrative interface for CSS Injector.

Code

function css_injector_edit_validate($form, &$form_state) {
  $directory = '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,
    )));
  }
}