You are here

function css_injector_edit_validate in CSS Injector 6

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

Validation callback for the CSS rule edit form.

File

./css_injector.admin.inc, line 202

Code

function css_injector_edit_validate($form, &$form_state) {
  $rule = $form_state['values'];
  $directory = file_directory_path();
  file_check_directory($directory, 1);
  $form_state['rule'] = $rule;
}