function tagclouds_menu in TagCloud 7
Implements hook_menu().
File
- ./
tagclouds.module, line 22
Code
function tagclouds_menu() {
$items = array();
$items['admin/config/content/tagclouds'] = array(
'title' => 'TagClouds 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(
'tagclouds_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer taxonomy',
),
);
$items['tagclouds'] = array(
'title' => 'Tags',
'page callback' => 'tagclouds_page_chunk',
'page arguments' => array(
NULL,
),
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_SUGGESTED_ITEM,
);
$items['tagclouds/list/%tagclouds_vocs'] = array(
'title' => 'Tags',
'page callback' => 'tagclouds_page_list',
'page arguments' => array(
2,
),
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['tagclouds/chunk/%tagclouds_vocs'] = array(
'title' => 'Tags',
'page callback' => 'tagclouds_page_chunk',
'page arguments' => array(
2,
),
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_SUGGESTED_ITEM,
);
return $items;
}