function tagadelic_menu in Tagadelic 6
Same name and namespace in other branches
- 5 tagadelic.module \tagadelic_menu()
- 7 tagadelic.module \tagadelic_menu()
Implements hook_menu().
File
- ./
tagadelic.module, line 23
Code
function tagadelic_menu() {
$items = array();
$items['admin/settings/tagadelic'] = array(
'title' => 'Tagadelic configuration',
'description' => 'Configure the tag clouds. Set the order, the number of tags, and the depth of the clouds.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tagadelic_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer taxonomy',
),
);
$items['tagadelic'] = array(
'title' => 'Tags',
'page callback' => 'tagadelic_page_chunk',
'page arguments' => array(
NULL,
),
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_SUGGESTED_ITEM,
);
$items['tagadelic/list/%tagadelic_vocs'] = array(
'title callback' => 'tagadelic_page_title_callback',
'title arguments' => array(
2,
),
'page callback' => 'tagadelic_page_list',
'page arguments' => array(
2,
),
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['tagadelic/chunk/%tagadelic_vocs'] = array(
'title callback' => 'tagadelic_page_title_callback',
'title arguments' => array(
2,
),
'page callback' => 'tagadelic_page_chunk',
'page arguments' => array(
2,
),
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_SUGGESTED_ITEM,
);
return $items;
}