You are here

function user_stats_menu in User Stats 7

Same name and namespace in other branches
  1. 5 user_stats.module \user_stats_menu()
  2. 6 user_stats.module \user_stats_menu()

Implements hook_menu().

File

./user_stats.module, line 43
User Stats provides commonly requested user statistics for themers. These are:

Code

function user_stats_menu() {
  $items = array();

  // Admin settings
  $items['admin/config/people/user_stats'] = array(
    'title' => 'User Stats settings',
    'description' => 'Configuration of user stats module options.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'user_stats_admin_settings',
    ),
    'access arguments' => array(
      'administer user stats',
    ),
    'file' => 'user_stats.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/people/user_stats/reset_post_count'] = array(
    'title' => 'reset user post stats',
    'page callback' => 'user_stats_reset_post_count',
    'access arguments' => array(
      'administer user stats',
    ),
    'file' => 'user_stats.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/people/reset_login_count'] = array(
    'title' => 'reset user login stats',
    'page callback' => 'user_stats_reset_login_count',
    'access arguments' => array(
      'administer user stats',
    ),
    'file' => 'user_stats.admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}