function filemime_menu in File MIME 7
Same name and namespace in other branches
- 6 filemime.module \filemime_menu()
Implements hook_menu().
File
- ./
filemime.module, line 11 - Enables site admins to configure the MIME type mapping for uploaded files.
Code
function filemime_menu() {
$items['admin/config/media/filemime'] = array(
'title' => 'File MIME',
'description' => 'Configure the MIME type mapping for uploaded files.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'filemime_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'filemime.admin.inc',
);
$items['admin/config/media/filemime/config'] = array(
'title' => 'Configure',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/media/filemime/apply'] = array(
'title' => 'Apply',
'description' => 'Apply the MIME type mapping to all previously uploaded files.',
'page arguments' => array(
'filemime_apply',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
return $items;
}