You are here

function download_count_menu in Download Count 6

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. 7.3 download_count.module \download_count_menu()
  4. 7.2 download_count.module \download_count_menu()

Implementation of hook_menu()

File

./download_count.module, line 29
Download counter

Code

function download_count_menu() {
  $items = array();
  $items['admin/settings/download_count'] = array(
    'description' => 'Increments a download counter and logs a descriptive message each time an attached file is downloaded.',
    'title' => 'Download counter',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'download_count_admin_settings',
    ),
    'access arguments' => array(
      'administer download counter',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['download_counter'] = array(
    'title' => 'Download counter',
    'page callback' => 'download_count_view_page',
    'access arguments' => array(
      'view all downloads count',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}