/[drupal]/contributions/modules/taxonomy_menu/taxonomy_menu.module
ViewVC logotype

Diff of /contributions/modules/taxonomy_menu/taxonomy_menu.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.19.2.2.2.17, Sun Mar 1 04:02:18 2009 UTC revision 1.19.2.2.2.18, Sun Mar 1 04:09:13 2009 UTC
# Line 1  Line 1 
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
# Line 109  function taxonomy_menu_vocab_submit($for Line 109  function taxonomy_menu_vocab_submit($for
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
# Line 127  function taxonomy_menu_vocab_submit($for Line 120  function taxonomy_menu_vocab_submit($for
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 ||
# Line 770  function taxonomy_menu_taxonomy_menu_opt Line 757  function taxonomy_menu_taxonomy_menu_opt
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.'),

Legend:
Removed from v.1.19.2.2.2.17  
changed lines
  Added in v.1.19.2.2.2.18

  ViewVC Help
Powered by ViewVC 1.1.2