1 file.admin.inc file_type_classify_confirm($form, $form_state)

Confirm form for file type classification process.

See also

file_type_classify_confirm_submit()

file_menu()

Related topics

File

core/modules/file/file.admin.inc, line 696
Admin page callbacks for the File module.

Code

function file_type_classify_confirm($form, $form_state) {
  $form = confirm_form(
  array(), 
  t('Are you sure you want to classify the file types?'), 
  'admin/reports/status', 
  t('This action will classify all files that are missing a type, and may be a lengthy process.'), 
  t('Classify file types'), 
  t('Cancel')
  );
  // Change the css class of the submit button to something less scary.
  $form['actions']['submit']['#attributes']['class'][0] = 'button-primary';
  return $form;
}