function globallink_menu_get_i18n_menu_set in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.7 globallink_menu/globallink_menu.inc \globallink_menu_get_i18n_menu_set()
- 7.6 globallink_menu/globallink_menu.inc \globallink_menu_get_i18n_menu_set()
Gets internationalization menu set.
Parameters
string $tsid: The TSID.
Return value
array Array representing the internationalization menu set.
1 call to globallink_menu_get_i18n_menu_set()
- globallink_menu_get_translated in globallink_menu/
globallink_menu.inc - Gets number of translated menus.
File
- globallink_menu/
globallink_menu.inc, line 410
Code
function globallink_menu_get_i18n_menu_set($tsid) {
$arr = array();
$query = db_select('menu_links', 'ml');
$query
->fields('ml');
$query
->condition('i18n_tsid', $tsid, '=');
$results = $query
->execute();
foreach ($results as $row) {
$arr[$row->language] = $row;
}
return $arr;
}