You are here

function shrinktheweb_admin_log_validate in ShrinkTheWeb 6

Same name and namespace in other branches
  1. 7 shrinktheweb.admin.inc \shrinktheweb_admin_log_validate()

File

./shrinktheweb.admin.inc, line 93

Code

function shrinktheweb_admin_log_validate($form, $form_state) {
  if (!isset($form_state['storage']['confirm'])) {
    $log_recs = array_filter($form_state['values']['log_records']);
    if (empty($log_recs)) {
      form_set_error('log_records', t('Please select a log record!'));
    }
  }
}