You are here

function auditfiles_menu in Audit Files 7.4

Same name and namespace in other branches
  1. 5 auditfiles.module \auditfiles_menu()
  2. 6.3 auditfiles.module \auditfiles_menu()
  3. 6.2 auditfiles.module \auditfiles_menu()
  4. 7.3 auditfiles.module \auditfiles_menu()

Implements hook_menu().

File

./auditfiles.module, line 146
Implements various Drupal hooks.

Code

function auditfiles_menu() {
  $items = array();

  // Configure the settings for this module.
  $items['admin/config/system/auditfiles'] = array(
    'title' => 'Audit Files',
    'description' => 'Set file, extension and path exclusions for file audits.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'auditfiles_admin_settings',
    ),
    'access arguments' => array(
      'administer audit files',
    ),
    'file' => 'auditfiles.admin.inc',
  );

  // The various reports.
  $items['admin/reports/auditfiles'] = array(
    'title' => 'Audit Files',
    'description' => 'Allows for comparing and correcting files and file references in the "files" directory, in the database, and in content.',
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'access audit files reports',
    ),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
  );
  $items['admin/reports/auditfiles/notindatabase'] = array(
    'title' => 'Not in database',
    'description' => 'Lists files that are in the "files" directory, but not in the database.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'auditfiles_not_in_database_form',
    ),
    'access arguments' => array(
      'access audit files reports',
    ),
    'file' => 'auditfiles.notindatabase.inc',
    'weight' => 0,
  );
  $items['admin/reports/auditfiles/notonserver'] = array(
    'title' => 'Not on server',
    'description' => 'Lists files that are in the database, but not in the "files" directory.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'auditfiles_not_on_server_form',
    ),
    'access arguments' => array(
      'access audit files reports',
    ),
    'file' => 'auditfiles.notonserver.inc',
    'weight' => 1,
  );
  $items['admin/reports/auditfiles/managednotused'] = array(
    'title' => 'Managed not used',
    'description' => 'Lists files that are in the file_managed table, but not in the file_usage table.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'auditfiles_managed_not_used_form',
    ),
    'access arguments' => array(
      'access audit files reports',
    ),
    'file' => 'auditfiles.managednotused.inc',
    'weight' => 2,
  );
  $items['admin/reports/auditfiles/usednotmanaged'] = array(
    'title' => 'Used not managed',
    'description' => 'Lists files that are in the file_usage table, but not in the file_managed table.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'auditfiles_used_not_managed_form',
    ),
    'access arguments' => array(
      'access audit files reports',
    ),
    'file' => 'auditfiles.usednotmanaged.inc',
    'weight' => 3,
  );
  $items['admin/reports/auditfiles/usednotreferenced'] = array(
    'title' => 'Used not referenced',
    'description' => 'List files that are in the file_usage table, but not referenced in content.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'auditfiles_used_not_referenced_form',
    ),
    'access arguments' => array(
      'access audit files reports',
    ),
    'file' => 'auditfiles.usednotreferenced.inc',
    'weight' => 4,
  );
  $items['admin/reports/auditfiles/referencednotused'] = array(
    'title' => 'Referenced not used',
    'description' => 'List files referenced in content, but not in the file_usage table.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'auditfiles_referenced_not_used_form',
    ),
    'access arguments' => array(
      'access audit files reports',
    ),
    'file' => 'auditfiles.referencednotused.inc',
    'weight' => 5,
  );
  return $items;
}