Revision 467218eb
Added by Andreas Kohlbecker over 13 years ago
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
165 | 165 |
function cdm_dataportal_menu($may_cache) { |
166 | 166 |
$items = array(); |
167 | 167 |
|
168 |
if ($may_cache) { |
|
169 |
|
|
170 |
$items[] = array( |
|
171 |
'path' => 'admin/settings/cdm_dataportal', |
|
172 |
'title' => t('CDM Dataportal'), |
|
173 |
'description' => t('Setting for the CDM DataPortal'), |
|
174 |
'access' => user_access('administer cdm_dataportal'), |
|
175 |
'callback' => 'drupal_get_form', |
|
176 |
'callback arguments' => 'cdm_dataportal_settings', |
|
177 |
'type' => MENU_NORMAL_ITEM, |
|
178 |
); |
|
179 |
|
|
180 |
$items[] = array( |
|
181 |
'path' => 'admin/settings/cdm_dataportal/general', |
|
182 |
'title' => t('General'), |
|
183 |
'description' => t('Setting for the CDM DataPortal'), |
|
184 |
'access' => user_access('administer cdm_dataportal'), |
|
185 |
'callback' => 'drupal_get_form', |
|
186 |
'callback arguments' => 'cdm_dataportal_settings', |
|
187 |
'weight' => 0, |
|
188 |
'type' => MENU_LOCAL_TASK, |
|
189 |
); |
|
190 |
|
|
191 |
$items[] = array( |
|
192 |
'path' => 'admin/settings/cdm_dataportal/geo', |
|
193 |
'title' => t('Geo & Map'), |
|
194 |
'description' => t('Geo & Map'), |
|
195 |
'access' => user_access('administer cdm_dataportal'), |
|
196 |
'callback' => 'drupal_get_form', |
|
197 |
'callback arguments' => 'cdm_dataportal_settings_geo', |
|
198 |
'weight' => 1, |
|
199 |
'type' => MENU_LOCAL_TASK, |
|
200 |
); |
|
168 |
cdm_dataportal_menu_admin($may_cache, $items); |
|
201 | 169 |
|
202 |
$items[] = array( |
|
203 |
'path' => 'admin/settings/cdm_dataportal/layout', |
|
204 |
'title' => t('Layout'), |
|
205 |
'description' => t('Configure and adjust the layout of your DataPortal '), |
|
206 |
'access' => user_access('administer cdm_dataportal'), |
|
207 |
'callback' => 'drupal_get_form', |
|
208 |
'callback arguments' => 'cdm_dataportal_settings_layout', |
|
209 |
'weight' => 2, |
|
210 |
'type' => MENU_LOCAL_TASK, |
|
211 |
); |
|
212 |
|
|
213 |
$items[] = array( |
|
214 |
'path' => 'admin/settings/cdm_dataportal/cachesite', |
|
215 |
'title' => t('Cache'), |
|
216 |
'description' => t('Cache the whole CDM DataPortal site'), |
|
217 |
'access' => user_access('administer cdm_dataportal'), |
|
218 |
'callback' => 'cdm_dataportal_view_cache_site', |
|
219 |
'weight' => 10, |
|
220 |
'type' => MENU_LOCAL_TASK, |
|
221 |
); |
|
222 |
|
|
223 |
/*$items[] = array( |
|
224 |
'path' => 'admin/settings/cdm_dataportal/ws', |
|
225 |
'title' => t('Web Service'), |
|
226 |
'description' => t('Setting for the CDM DataPortal'), |
|
227 |
'access' => user_access('administer cdm_dataportal'), |
|
228 |
'callback' => 'drupal_get_form', |
|
229 |
'callback arguments' => 'cdm_dataportal_settings', |
|
230 |
'weight' => 1, |
|
231 |
'type' => MENU_DEFAULT_LOCAL_TASK, |
|
232 |
);*/ |
|
170 |
if ($may_cache) { |
|
233 | 171 |
|
234 |
$items[] = array(
|
|
172 |
$items[] = array(
|
|
235 | 173 |
'path' => 'cdm_dataportal/names', |
236 | 174 |
'callback' => 'cdm_dataportal_view_names', |
237 | 175 |
'access' => true, |
Also available in: Unified diff
reorganizing the admin sections