You are here

function js_injector_edit_validate in JS injector 6

Same name and namespace in other branches
  1. 6.2 js_injector.admin.inc \js_injector_edit_validate()
  2. 7 js_injector.admin.inc \js_injector_edit_validate()

Validation callback for the js rule edit form.

File

./js_injector.admin.inc, line 211

Code

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