You are here

function demo_admin_settings_validate in Demonstration site (Sandbox / Snapshot) 6

Same name and namespace in other branches
  1. 7 demo.admin.inc \demo_admin_settings_validate()

Form validation handler for demo_admin_settings().

1 string reference to 'demo_admin_settings_validate'
demo_admin_settings in ./demo.admin.inc
Form builder for Demo module settings.

File

./demo.admin.inc, line 56
Demonstration Site administrative pages

Code

function demo_admin_settings_validate($form, &$form_state) {
  if (!file_check_directory($form_state['values']['demo_dump_path'], FILE_CREATE_DIRECTORY)) {
    form_set_error('demo_dump_path', t('The snapshot directory %directory could not be created.', array(
      '%directory' => $form_state['values']['demo_dump_path'],
    )));
  }
}