You are here

function counter_menu in Counter 5

Same name and namespace in other branches
  1. 6 counter.module \counter_menu()
  2. 7 counter.module \counter_menu()

Menu callback. Prints a listing of active nodes on the site.

File

./counter.module, line 32
The counter module used for displaying Site Counter.

Code

function counter_menu() {
  $items = array();
  $items['admin/settings/counter'] = array(
    'title' => 'Counter settings',
    'description' => 'Show Site Counter, Client IP, and Unique Visitor.',
    'access arguments' => array(
      'administer counter',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'counter_admin_settings',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['counter/report'] = array(
    'title' => 'Counter Report',
    'description' => 'View Counter Report',
    'access arguments' => array(
      'administer counter',
    ),
    'page callback' => 'counter_report',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}