You are here

function fancy_file_delete_manual_validate in Fancy File Delete 7

Validate handler for manual form.

1 string reference to 'fancy_file_delete_manual_validate'
fancy_file_delete_manual in includes/fancy_file_delete.admin.inc
Manual Deletion Page Callback.

File

includes/fancy_file_delete.admin.inc, line 52
Fancy File Delete administration and module settings UI.

Code

function fancy_file_delete_manual_validate($form, &$form_state) {

  // Required doesn't work well with states it seemz.
  if (empty($form_state['values']['delete_textarea'])) {
    form_set_error('delete_textarea', t('You can\'t leave this blank, what\'cha thinking?'));
  }
}