You are here

function _services_menu_retrieve in Services Menu 7

Callback for retrieving menu resources.

Parameters

$menu_name: Machine name of menu that is to be retrieved

Return value

object ServicesMenu object

1 string reference to '_services_menu_retrieve'
services_menu_services_resources in ./services_menu.module
Implements hook_services_resources().

File

./services_menu.resource.inc, line 18

Code

function _services_menu_retrieve($menu_name) {
  $result = new ServicesMenu($menu_name);
  $menu = (object) menu_build_tree($menu_name);
  $result->tree = _services_menu_serialize_data($menu);
  return $result;
}