| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_menu.module,v 1.19.2.2.2.16 2009/02/27 21:54:06 indytechcook Exp $ |
// $Id: taxonomy_menu.module,v 1.19.2.2.2.17 2009/03/01 04:02:18 indytechcook Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 109 |
} |
} |
| 110 |
} |
} |
| 111 |
|
|
|
//if the base path has changed |
|
|
if ($key = 'base_path') { |
|
|
if (_taxonomy_menu_check_variable($variable_name, $value)) { |
|
|
$changed_base_path = TRUE; |
|
|
} |
|
|
} |
|
|
|
|
| 112 |
//if $changed is alreayd set to true, then don't bother checking any others |
//if $changed is alreayd set to true, then don't bother checking any others |
| 113 |
if (!$changed) { |
if (!$changed) { |
| 114 |
//check to see if the variable has changed |
//check to see if the variable has changed |
| 120 |
variable_set($variable_name, $value); |
variable_set($variable_name, $value); |
| 121 |
} |
} |
| 122 |
|
|
|
//if the base path has changed then rebuild the menu before you do anything else |
|
|
//this is needed so the new path can be registered before menu_link_save is run |
|
|
if ($changed_base_path) { |
|
|
menu_rebuild; |
|
|
} |
|
|
|
|
| 123 |
//if the menu hasn't changed and the menu is disabled then do not do anything else |
//if the menu hasn't changed and the menu is disabled then do not do anything else |
| 124 |
if ($form_state['values']['taxonomy_menu']['options']['rebuild'] || |
if ($form_state['values']['taxonomy_menu']['options']['rebuild'] || |
| 125 |
$changed_menu || |
$changed_menu || |
| 757 |
'default' => TRUE, |
'default' => TRUE, |
| 758 |
); |
); |
| 759 |
|
|
|
if (module_exists('pathauto')) { |
|
|
$options['base_path'] = array( |
|
|
'#title' => t('Base Path'), |
|
|
'#type' => 'textfield', |
|
|
'#description' => t('Base Path if using Pathauto'), |
|
|
'default' => t('category'), |
|
|
); |
|
|
} |
|
|
|
|
| 760 |
$options['display_num'] = array( |
$options['display_num'] = array( |
| 761 |
'#title' => t('Display Number of Nodes'), |
'#title' => t('Display Number of Nodes'), |
| 762 |
'#description' => t('Dipslay the number of Items per taxonomy Terms. Will not show up for vocabulary menu items.'), |
'#description' => t('Dipslay the number of Items per taxonomy Terms. Will not show up for vocabulary menu items.'), |