You are here

function entity_menu_links_services_retrieve in Entity menu links 7

Returns a specified menu_link.

Parameters

$mlid: Unique identifier for the specified menu_link.

Return value

The menu_link object.

1 string reference to 'entity_menu_links_services_retrieve'
entity_menu_links_services_resources in ./entity_menu_links.services.inc
Implements hook_services_resources().

File

./entity_menu_links.services.inc, line 137
Contains callbacks for service resource manipulation.

Code

function entity_menu_links_services_retrieve($mlid) {
  $menu_link = entity_load($mlid);
  if (!$menu_link) {
    return services_error(t('Menu link @mlid not found.', array(
      '@mlid' => $mlid,
    )), 404);
  }
  return $menu_link;
}