function weight_menu in Weight 6
Same name and namespace in other branches
- 5 weight.module \weight_menu()
- 7 weight.module \weight_menu()
Implementation of hook_menu().
File
- ./
weight.module, line 42 - This module uses the sticky column of the node table to add weighting to nodes.
Code
function weight_menu() {
$items = array();
// Ajax callback for weight changer page.
$items['admin/node/weight/_weight_change'] = array(
'page callback' => '_weight_change',
'access arguments' => array(
'administer nodes',
),
'type' => MENU_CALLBACK,
);
// Top level settings.
$items['admin/settings/weight'] = array(
'title' => 'Weight',
'access arguments' => array(
'administer site configuration',
),
'description' => 'Add weight-based sorting to nodes.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'weight_settings_form',
),
'file' => 'weight.admin.inc',
);
return $items;
}