You are here

function download_count_menu in Download Count 7.2

Same name and namespace in other branches
  1. 5 download_count.module \download_count_menu()
  2. 6.2 download_count.module \download_count_menu()
  3. 6 download_count.module \download_count_menu()
  4. 7.3 download_count.module \download_count_menu()

Implements hook_menu().

File

./download_count.module, line 38
Tracks file downloads for files stored in the drupal files table using the private files setting or custom private filefield.

Code

function download_count_menu() {
  $items = array();
  $items['admin/config/download_count'] = array(
    'title' => 'Download count settings',
    'description' => 'Tracks file downloads for files stored in the drupal files table.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'download_count_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'includes/download_count.admin.inc',
  );
  $items['download_count/%download_count_entry/reset'] = array(
    'title' => 'Download Count Reset',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'download_count_reset_form',
      1,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'includes/download_count.pages.inc',
  );
  $items['download_count'] = array(
    'title' => 'Download Count',
    'page callback' => 'download_count_view_page',
    'page arguments' => array(
      'download_count',
    ),
    'access arguments' => array(
      'view all download counts',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'includes/download_count.pages.inc',
  );
  $items['my_download_count'] = array(
    'title' => 'My Download Count',
    'page callback' => 'download_count_view_page',
    'page arguments' => array(
      'my_download_count',
    ),
    'access arguments' => array(
      'view own download counts',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => '/includes/download_count.pages.inc',
  );
  return $items;
}