You are here

function mimedetect_menu in MimeDetect 5

Same name and namespace in other branches
  1. 6 mimedetect.module \mimedetect_menu()
  2. 7 mimedetect.module \mimedetect_menu()

@file Provide server side mime type detection.

@author Darrel O'Pry, http://www.drupal.org/user/22202 @copyright Copyright(c) 2007, Darrel O'Pry

File

./mimedetect.module, line 12
Provide server side mime type detection.

Code

function mimedetect_menu($may_cache) {
  $items = array();
  if ($may_cache) {

    // The admin settings form.
    $items[] = array(
      'path' => 'admin/settings/mimedetect',
      'title' => t('Mime type detection'),
      'description' => t('Control how the mime type of uploaded files will be determined.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'mimedetect_settings',
      ),
    );
  }
  return $items;
}