You are here

filemime.module in File MIME 6

Same filename and directory in other branches
  1. 8 filemime.module
  2. 7 filemime.module

Rewrite the MIME type for each file upload based on a server-side mime.types file and/or custom settings.

File

filemime.module
View source
<?php

/**
 * @file
 * Rewrite the MIME type for each file upload based on a server-side mime.types file and/or custom settings.
 */

/**
 * Implementation of hook_menu().
 */
function filemime_menu() {
  $items['admin/settings/filemime'] = array(
    'title' => 'File MIME',
    'description' => 'Configure the MIME extension mapping for uploaded files.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'filemime_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'filemime.admin.inc',
  );
  return $items;
}

Functions

Namesort descending Description
filemime_menu Implementation of hook_menu().