Mercurial > defr > drupal > core
comparison modules/taxonomy/taxonomy.module @ 5:2427550111ae 6.2
Drupal 6.2
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:30:08 +0100 |
parents | c1f4ac30525a |
children | fff6d4c8c043 |
comparison
equal
deleted
inserted
replaced
4:d94886ac61a0 | 5:2427550111ae |
---|---|
1 <?php | 1 <?php |
2 // $Id: taxonomy.module,v 1.414 2008/01/27 17:55:15 goba Exp $ | 2 // $Id: taxonomy.module,v 1.414.2.1 2008/04/09 21:11:51 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Enables the organization of content into categories. | 6 * Enables the organization of content into categories. |
7 */ | 7 */ |
126 | 126 |
127 $items['admin/content/taxonomy/add/vocabulary'] = array( | 127 $items['admin/content/taxonomy/add/vocabulary'] = array( |
128 'title' => 'Add vocabulary', | 128 'title' => 'Add vocabulary', |
129 'page callback' => 'drupal_get_form', | 129 'page callback' => 'drupal_get_form', |
130 'page arguments' => array('taxonomy_form_vocabulary'), | 130 'page arguments' => array('taxonomy_form_vocabulary'), |
131 'access arguments' => array('administer taxonomy'), | |
131 'type' => MENU_LOCAL_TASK, | 132 'type' => MENU_LOCAL_TASK, |
132 'parent' => 'admin/content/taxonomy', | 133 'parent' => 'admin/content/taxonomy', |
133 'file' => 'taxonomy.admin.inc', | 134 'file' => 'taxonomy.admin.inc', |
134 ); | 135 ); |
135 | 136 |
136 $items['admin/content/taxonomy/edit/vocabulary/%taxonomy_vocabulary'] = array( | 137 $items['admin/content/taxonomy/edit/vocabulary/%taxonomy_vocabulary'] = array( |
137 'title' => 'Edit vocabulary', | 138 'title' => 'Edit vocabulary', |
138 'page callback' => 'taxonomy_admin_vocabulary_edit', | 139 'page callback' => 'taxonomy_admin_vocabulary_edit', |
139 'page arguments' => array(5), | 140 'page arguments' => array(5), |
141 'access arguments' => array('administer taxonomy'), | |
140 'type' => MENU_CALLBACK, | 142 'type' => MENU_CALLBACK, |
141 'file' => 'taxonomy.admin.inc', | 143 'file' => 'taxonomy.admin.inc', |
142 ); | 144 ); |
143 | 145 |
144 $items['admin/content/taxonomy/edit/term'] = array( | 146 $items['admin/content/taxonomy/edit/term'] = array( |
145 'title' => 'Edit term', | 147 'title' => 'Edit term', |
146 'page callback' => 'taxonomy_admin_term_edit', | 148 'page callback' => 'taxonomy_admin_term_edit', |
149 'access arguments' => array('administer taxonomy'), | |
147 'type' => MENU_CALLBACK, | 150 'type' => MENU_CALLBACK, |
148 'file' => 'taxonomy.admin.inc', | 151 'file' => 'taxonomy.admin.inc', |
149 ); | 152 ); |
150 | 153 |
151 $items['taxonomy/term/%'] = array( | 154 $items['taxonomy/term/%'] = array( |
181 | 184 |
182 $items['admin/content/taxonomy/%taxonomy_vocabulary/add/term'] = array( | 185 $items['admin/content/taxonomy/%taxonomy_vocabulary/add/term'] = array( |
183 'title' => 'Add term', | 186 'title' => 'Add term', |
184 'page callback' => 'taxonomy_add_term_page', | 187 'page callback' => 'taxonomy_add_term_page', |
185 'page arguments' => array(3), | 188 'page arguments' => array(3), |
189 'access arguments' => array('administer taxonomy'), | |
186 'type' => MENU_LOCAL_TASK, | 190 'type' => MENU_LOCAL_TASK, |
187 'parent' => 'admin/content/taxonomy/%taxonomy_vocabulary', | 191 'parent' => 'admin/content/taxonomy/%taxonomy_vocabulary', |
188 'file' => 'taxonomy.admin.inc', | 192 'file' => 'taxonomy.admin.inc', |
189 ); | 193 ); |
190 | 194 |