function nodesinblock_menu in Nodes In Block 6
Same name and namespace in other branches
- 7 nodesinblock.module \nodesinblock_menu()
Implementation of hook_menu().
File
- ./
nodesinblock.module, line 34 - 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/settings/nodesinblock'] = array(
'title' => 'Nodes in block',
'description' => 'Configure settings for 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/settings/nodesinblock/default'] = array(
'title' => 'Configuration',
'description' => 'Configure settings for node in block.',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/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/settings/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;
}