function download_count_menu in Download Count 7.3
Same name and namespace in other branches
- 5 download_count.module \download_count_menu()
- 6.2 download_count.module \download_count_menu()
- 6 download_count.module \download_count_menu()
- 7.2 download_count.module \download_count_menu()
Implements hook_menu().
File
- ./
download_count.module, line 46 - 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/media/download-count'] = array(
'title' => 'Download count',
'description' => 'Tracks file downloads for files stored in private core file fields.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'download_count_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'includes/download_count.settings.inc',
);
$items['admin/config/media/download-count/clear'] = array(
'title' => 'Clear Cache',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'download_count_clear_confirm',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
'file' => 'includes/download_count.settings.inc',
);
$items['admin/config/media/download-count/settings'] = array(
'title' => 'Settings',
'weight' => 1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/reports/download-count'] = array(
'title' => 'Download Counts',
'description' => 'Download history of files attached to private core file fields.',
'page callback' => 'download_count_view_page',
'page arguments' => array(
'download_count',
),
'access arguments' => array(
'view download counts',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'includes/download_count.pages.inc',
);
$items['admin/reports/download-count/%download_count_entry/details'] = array(
'title' => 'Download Count Details',
'page callback' => 'download_count_view_details',
'page arguments' => array(
3,
),
'access arguments' => array(
'view download counts',
),
'type' => MENU_CALLBACK,
'file' => 'includes/download_count.pages.inc',
);
$items['admin/reports/download-count/%download_count_entry/reset'] = array(
'title' => 'Download Count Reset',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'download_count_reset_form',
3,
),
'access arguments' => array(
'reset download counts',
),
'type' => MENU_CALLBACK,
'file' => 'includes/download_count.pages.inc',
);
$items['admin/reports/download-count/%download_count_entry/export'] = array(
'title' => 'Download Count Export CSV',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'download_count_export_form',
3,
),
'access arguments' => array(
'export download counts',
),
'type' => MENU_CALLBACK,
'file' => 'includes/download_count.export.inc',
);
return $items;
}