function tagadelic_menu in Tagadelic 7
Same name and namespace in other branches
- 5 tagadelic.module \tagadelic_menu()
- 6 tagadelic.module \tagadelic_menu()
Implements hook_menu().
File
- ./
tagadelic.module, line 22
Code
function tagadelic_menu() {
$items = array();
$items['admin/config/content/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' => 'Tags',
'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' => 'Tags',
'page callback' => 'tagadelic_page_chunk',
'page arguments' => array(
2,
),
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_SUGGESTED_ITEM,
);
return $items;
}