You are here

function auditfiles_menu in Audit Files 6.2

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

Implementation of hook_menu().

File

./auditfiles.module, line 46

Code

function auditfiles_menu() {
  $items = array();
  $items['admin/reports/auditfiles'] = array(
    'title' => 'Audit files',
    'description' => 'List files that are not on the server or not in the database.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'auditfiles_notindb',
    ),
    'access arguments' => array(
      'access file audits',
    ),
    'file' => 'notindb.admin.inc',
  );
  $items['admin/reports/auditfiles/notindb'] = array(
    'title' => t('Files not in database'),
    'description' => 'List files that are on the server but are not in the database.',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/reports/auditfiles/notonserver'] = array(
    'title' => 'Audit files not on server',
    'description' => 'List files that are in the database, but are not on the server.',
    'page callback' => 'auditfiles_notonserver',
    'access arguments' => array(
      'access file audits',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'notonserver.admin.inc',
  );
  $items['admin/settings/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 file audits',
    ),
    'file' => 'auditfiles.admin.inc',
  );
  return $items;
}