You are here

function counter_menu in Counter 6

Same name and namespace in other branches
  1. 5 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($may_cache) {
  $items = array();
  $items[] = array(
    'path' => 'counter/' . arg(1),
    'title' => t('counter'),
    'callback' => 'counter_set',
    'callback arguments' => array(
      arg(1),
    ),
    'access' => user_access('access counter'),
    'type' => MENU_CALLBACK,
  );
  $items[] = array(
    'path' => 'admin/settings/counter',
    'title' => 'Counter',
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'counter_admin_settings',
    ),
    'access' => user_access('administer counter'),
    'description' => 'Show Site Counter, Client IP, and Unique Visitor.',
  );
  $items[] = array(
    'path' => 'counter/report',
    'title' => 'Counter Report',
    'callback' => 'counter_report',
    'access' => user_access('administer counter'),
    'type' => MENU_CALLBACK,
  );
  return $items;
}