function community_tags_menu in Community Tags 6.2
Same name and namespace in other branches
- 5 community_tags.module \community_tags_menu()
- 6 community_tags.module \community_tags_menu()
- 7 community_tags.module \community_tags_menu()
Implementation of hook_menu().
File
- ./
community_tags.module, line 63 - Implements community tagging of nodes using a specific vocabulary for Drupal v6.x
Code
function community_tags_menu() {
$items = array();
$items['admin/settings/community-tags'] = array(
'title' => 'Community tags',
'description' => 'Configure community tagging.',
'page callback' => 'community_tags_settings',
'access arguments' => array(
'administer site configuration',
),
'file' => 'community_tags.admin.inc',
);
$items['admin/settings/community-tags/default'] = array(
'title' => 'Community tags settings',
'description' => 'Configure community tagging.',
'page callback' => 'community_tags_settings',
'access arguments' => array(
'administer site configuration',
),
'file' => 'community_tags.admin.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/community-tags/%taxonomy_vocabulary/%'] = array(
// 'title' => 'Community tags',
'title callback' => 'community_tags_sub_settings_title',
'title arguments' => array(
3,
4,
),
'description' => 'Configure community tagging for vocabulary and content type.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'community_tags_sub_settings',
3,
4,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'community_tags.admin.inc',
);
$items['admin/settings/community-tags/ops/broken'] = array(
'title' => 'Delete broken community tags',
'description' => 'Delete broken community tags.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'community_tags_delete_broken_tags_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
'file' => 'community_tags.admin.inc',
);
$items['admin/settings/community-tags/ops/purge/%taxonomy_vocabulary'] = array(
'title' => 'Delete community tags',
'description' => 'Delete community tags.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'community_tags_delete_all_form',
5,
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
'file' => 'community_tags.admin.inc',
);
$items['community-tags/js/%node'] = array(
'page callback' => 'community_tags_from_js',
'page arguments' => array(
2,
),
// vid will be passed if supplied as 4th argument e.g. community-tags/js/23/2 from community_tags.js ajax call - see hook_menu().
'access callback' => 'user_access',
'access arguments' => array(
'tag content',
),
'type' => MENU_CALLBACK,
'file' => 'community_tags.ajax.inc',
);
$items['community-tags/tag/%node/%'] = array(
'title' => 'Tag Content',
'page callback' => 'community_tags_node_view',
'page arguments' => array(
2,
FALSE,
3,
),
'access callback' => 'user_access',
'access arguments' => array(
'tag content',
),
);
$items['node/%node/tag'] = array(
'title' => 'Tags',
'page callback' => 'community_tags_node_view',
'page arguments' => array(
1,
FALSE,
),
'access callback' => '_community_tags_tab_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
'file' => 'community_tags.pages.inc',
);
$items['node/%node/tagmgmt'] = array(
'title' => 'Tag Management',
'page callback' => 'community_tags_node_tag_management',
'page arguments' => array(
1,
),
'access callback' => '_community_tags_mgmt_tab_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'weight' => 3,
'file' => 'community_tags.pages.inc',
);
$items['community-tags/tagmgmtops/%/%node/%'] = array(
'title' => 'Tag Management Operation',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'community_tags_node_tag_mgmt_confirm',
3,
4,
2,
),
'access callback' => '_community_tags_mgmt_tab_access',
'access arguments' => array(
3,
),
'type' => MENU_CALLBACK,
'file' => 'community_tags.pages.inc',
);
return $items;
}