function nodeorder_menu in Node Order 7
Same name and namespace in other branches
- 5 nodeorder.module \nodeorder_menu()
- 6 nodeorder.module \nodeorder_menu()
Implements hook_menu().
File
- ./
nodeorder.module, line 11 - Nodeorder module.
Code
function nodeorder_menu() {
$items = array();
$items['admin/config/content/nodeorder'] = array(
'title' => t('Nodeorder'),
'description' => t('Allows the ordering of nodes within taxonomy terms.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodeorder_admin',
),
'access arguments' => array(
'administer nodeorder',
),
'file' => 'includes/nodeorder.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['taxonomy/term/%/order'] = array(
'title' => t('Order nodes'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodeorder_admin_display_form',
2,
),
'access callback' => 'nodeorder_order_access',
'access arguments' => array(
2,
),
'file' => 'includes/nodeorder.admin.inc',
'weight' => 1,
'type' => MENU_LOCAL_TASK,
);
$items['nodeorder/moveup/%/%'] = array(
'title' => t('Move Up'),
'page callback' => 'nodeorder_move_in_category',
'page arguments' => array(
1,
2,
3,
),
'access arguments' => array(
'order nodes within categories',
),
'type' => MENU_CALLBACK,
);
$items['nodeorder/movedown/%/%'] = array(
'title' => t('Move Down'),
'page callback' => 'nodeorder_move_in_category',
'page arguments' => array(
1,
2,
3,
),
'access arguments' => array(
'order nodes within categories',
),
'type' => MENU_CALLBACK,
);
return $items;
}