/[drupal]/contributions/modules/i18n/i18nmenu/i18nmenu.module
ViewVC logotype

Diff of /contributions/modules/i18n/i18nmenu/i18nmenu.module

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

revision 1.2.2.15, Sat Aug 29 21:08:24 2009 UTC revision 1.2.2.16, Tue Nov 3 17:53:24 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: i18nmenu.module,v 1.2.2.14 2009/08/13 18:52:25 hass Exp $  // $Id: i18nmenu.module,v 1.2.2.15 2009/08/29 21:08:24 hass Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 16  function i18nmenu_locale($op = 'groups', Line 16  function i18nmenu_locale($op = 'groups',
16    switch ($op) {    switch ($op) {
17      case 'groups':      case 'groups':
18        return array('menu' => t('Menu'));        return array('menu' => t('Menu'));
19        case 'info':
20      case 'refresh':        $info['menu']['refresh callback'] = 'i18nmenu_locale_refresh';
21        if ($group == 'menu') {        return $info;
         return i18nmenu_locale_refresh();  
       }  
22    }    }
23  }  }
24    
# Line 34  function i18nmenu_locale_refresh() { Line 32  function i18nmenu_locale_refresh() {
32      $tree = menu_tree_all_data($name);      $tree = menu_tree_all_data($name);
33      i18nmenu_localize_tree($tree, TRUE);      i18nmenu_localize_tree($tree, TRUE);
34    }    }
35      return TRUE; // Meaning it completed with no issues
36  }  }
37    
38  /**  /**

Legend:
Removed from v.1.2.2.15  
changed lines
  Added in v.1.2.2.16

  ViewVC Help
Powered by ViewVC 1.1.2