function counter_menu in Counter 7
Same name and namespace in other branches
- 5 counter.module \counter_menu()
- 6 counter.module \counter_menu()
Menu callback. Prints a listing of active nodes on the site.
File
- ./
counter.module, line 38
Code
function counter_menu() {
$items['admin/config/counter'] = array(
'title' => 'Counter',
'page callback' => 'system_admin_menu_block_page',
// 'page arguments' => array('counter_admin_settings'),
'access arguments' => array(
'administer counter',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/counter/basic'] = array(
'title' => 'Basic Counter',
'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',
),
'weight' => -10,
'file' => 'counter.settings.inc',
);
$items['admin/config/counter/advanced'] = array(
'title' => 'Advanced Counter',
'access arguments' => array(
'administer counter',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'counter_settings_advanced',
),
'file' => 'counter.settings.inc',
);
$items['admin/config/counter/initial'] = array(
'title' => 'Initial Value Counter',
'access arguments' => array(
'administer counter',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'counter_settings_initial',
),
'file' => 'counter.settings.inc',
);
return $items;
}