1 file.module file_admin_paths()

Implements hook_admin_paths().

File

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

Code

function file_admin_paths() {
  // Re-use the node admin theme setting for files.
  if (config_get('system.core', 'node_admin_theme')) {
    $paths = array(
      'file/*/delete' => TRUE,
      'file/*/manage' => TRUE,
      'file/add' => TRUE,
      'file/add/*' => TRUE,
      'file/*/usage' => TRUE,
    );
    return $paths;
  }
  else {
    return array();
  }
}