| 1 |
<?php |
<?php |
| 2 |
//$Id: menutree.module,v 1.3 2008/01/09 05:20:03 crell Exp $ |
//$Id: menutree.module,v 1.4 2008/01/22 02:56:59 crell Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 36 |
'title' => 'Sitemap', |
'title' => 'Sitemap', |
| 37 |
'page callback' => 'menutree_display', |
'page callback' => 'menutree_display', |
| 38 |
'page arguments' => array(menu_load('primary-links')), |
'page arguments' => array(menu_load('primary-links')), |
|
'access callback' => 'user_access', |
|
| 39 |
'access arguments' => array('view site tree'), |
'access arguments' => array('view site tree'), |
| 40 |
'type' => MENU_CALLBACK, |
'type' => MENU_CALLBACK, |
| 41 |
); |
); |
| 43 |
'title' => 'Sitemap', |
'title' => 'Sitemap', |
| 44 |
'page arguments' => array(1), |
'page arguments' => array(1), |
| 45 |
'type' => MENU_CALLBACK, |
'type' => MENU_CALLBACK, |
| 46 |
|
'access arguments' => array('view site tree'), |
| 47 |
); |
); |
| 48 |
$items['admin/build/menutree'] = array( |
$items['admin/build/menutree'] = array( |
| 49 |
'title' => 'Menu trees', |
'title' => 'Menu trees', |
| 50 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |
| 51 |
'page arguments' => array('menutree_settings'), |
'page arguments' => array('menutree_settings'), |
| 52 |
'description' => 'Configure page titles and intro text for menu tree pages.', |
'description' => 'Configure page titles and intro text for menu tree pages.', |
|
'access callback' => 'user_access', |
|
| 53 |
'access arguments' => array('administer menu tree'), |
'access arguments' => array('administer menu tree'), |
| 54 |
'file' => 'menutree.admin.inc', |
'file' => 'menutree.admin.inc', |
| 55 |
); |
); |
| 93 |
function theme_menutree_page($output) { |
function theme_menutree_page($output) { |
| 94 |
return '<div class="menutree-page">'. $output ."</div>\n"; |
return '<div class="menutree-page">'. $output ."</div>\n"; |
| 95 |
} |
} |
|
|
|