function file_entity_type_disable_confirm

cis7 file_entity_type_disable_confirm($form, &$form_state, $type)
cle7 file_entity_type_disable_confirm($form, &$form_state, $type)
elmsmedia7 file_entity_type_disable_confirm($form, &$form_state, $type)
icor7 file_entity_type_disable_confirm($form, &$form_state, $type)
meedjum_blog7 file_entity_type_disable_confirm($form, &$form_state, $type)
mooc7 file_entity_type_disable_confirm($form, &$form_state, $type)

Menu callback; disable a single file type.

1 string reference to 'file_entity_type_disable_confirm'
file_entity_menu in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_menu().


sites/all/modules/ulmus/file_entity/, line 957
File administration and module settings UI.


function file_entity_type_disable_confirm($form, &$form_state, $type) {
  $form['type'] = array(
    '#type' => 'value',
    '#value' => $type->type,
  $form['label'] = array(
    '#type' => 'value',
    '#value' => $type->label,

  $message = t('Are you sure you want to disable the file type %type?', array('%type' => $type->label));
  $caption = '';

  $num_files = db_query("SELECT COUNT(*) FROM {file_managed} WHERE type = :type", array(':type' => $type->type))->fetchField();
  if ($num_files) {
    $caption .= '<p>' . format_plural($num_files, '%type is used by 1 file on
      your site. If you disable this file type, you will not be able to edit
      the %type file and it may not display correctly.', '%type is used by
      @count files on your site. If you remove %type, you will not be able to
      edit the %type file and it may not display correctly.', array('%type' => $type->label)) . '</p>';

  return confirm_form($form, $message, 'admin/structure/file-types', $caption, t('Disable'));



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.