| 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 |
| 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 |
|
|
| 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 |
/** |
/** |