You are here

function entity_menu_links_services_delete in Entity menu links 7

Delete a menu_link.

Parameters

$mlid: Unique identifier of the menu_link to delete.

Return value

True.

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

File

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

Code

function entity_menu_links_services_delete($mlid) {
  $controller = entity_get_controller('menu_link');
  $menu_link = entity_load('menu_link', array(
    $jid,
  ));
  if (empty($menu_link)) {
    return services_error(t('Menu link @mlid not found.', array(
      '@mlid' => $mlid,
    )), 404);
  }
  $controller
    ->delete($mlid);
  return TRUE;
}