function globallink_menu_load_data in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.7 globallink_menu/globallink_menu.inc \globallink_menu_load_data()
- 7.5 globallink_menu/globallink_menu.inc \globallink_menu_load_data()
Loads menu data from menu ID.
Parameters
string $mlid: The menu ID.
Return value
array Array of menu data.
1 call to globallink_menu_load_data()
- globallink_menu_get_translations_for_row_id in globallink_menu/
globallink_menu_receive.inc - Gets menu translations by row ID.
File
- globallink_menu/
globallink_menu.inc, line 908
Code
function globallink_menu_load_data($mlid) {
$query = db_select('menu_links', 'ml')
->fields('ml')
->condition('mlid', $mlid, '=');
$results = $query
->execute();
$rows = array();
foreach ($results as $item) {
$rows[] = $item;
}
return $rows;
}