You are here

function globallink_menu_load_data in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 globallink_menu/globallink_menu.inc \globallink_menu_load_data()
  2. 7.6 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.

File

globallink_menu/globallink_menu.inc, line 477

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;
}