function nodeviewcount_menu in Node view count 7
Same name and namespace in other branches
- 7.3 nodeviewcount.module \nodeviewcount_menu()
- 7.2 nodeviewcount.module \nodeviewcount_menu()
Implements hook_menu().
File
- ./
nodeviewcount.module, line 12
Code
function nodeviewcount_menu() {
$items = array();
$items['admin/config/content/nodeviewcount'] = array(
'title' => 'Node view count settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodeviewcount_admin_settings_form',
),
'access arguments' => array(
'administer modules',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'includes/pages/nodeviewcount.admin.inc',
);
$items['nodeviewcount/%nodeviewcount_node/%nodeviewcount_user'] = array(
'page callback' => 'nodeviewcount_count_node_view_ajax',
'page arguments' => array(
1,
2,
),
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'includes/pages/nodeviewcount.pages.inc',
);
return $items;
}