function nodesinblock_menu in Nodes In Block 7
Same name and namespace in other branches
- 6 nodesinblock.module \nodesinblock_menu()
Implements hook_menu().
File
- ./
nodesinblock.module, line 39 - Nodes in block makes it possible to add multiple nodes in one block.
Code
function nodesinblock_menu() {
$items = array();
$items['node/%node/nodesinblock'] = array(
'title' => 'Nodes in block',
'description' => 'Nodes in block queue. ',
'title callback' => 'nodesinblock_tabtitle',
'title arguments' => array(
1,
),
'page callback' => 'nodesinblock_nodequeue',
'page arguments' => array(
1,
),
'access callback' => 'nodesinblock_nodequeue_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
$items['admin/structure/nodesinblock'] = array(
'title' => 'Nodes in block',
'description' => 'Setup nodes in block. ',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodesinblock_settings',
),
'access arguments' => array(
'administer nodes in block configuration',
),
'file' => 'nodesinblock.admin.inc',
);
$items['admin/structure/nodesinblock/default'] = array(
'title' => 'Configure',
'description' => 'Configure node in block. ',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/structure/nodesinblock/queue'] = array(
'title' => 'Queue',
'description' => 'Nodes in block queue. ',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodesinblock_queue',
),
'access arguments' => array(
'administer nodes in block queue',
),
'file' => 'nodesinblock.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/structure/nodesinblock/clear'] = array(
'title' => 'Clear settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodesinblock_settings_clear_confirm',
),
'access arguments' => array(
'administer nodes in block configuration',
),
'file' => 'nodesinblock.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}