1 file.module file_admin_bar_map()

Implements hook_admin_menu_map().

File

core/modules/file/file.module, line 2656
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_admin_bar_map() {
  if (!user_access('administer file types')) {
    return;
  }
  $map['admin/structure/file-types/manage/%file_type'] = array(
    'parent' => 'admin/structure/file-types',
    'arguments' => array(
      array('%file_type' => array_keys(file_type_get_names())),
    ),
  );
  return $map;
}