You are here

function services_menu_services_resources in Services Menu 7

Implements hook_services_resources().

File

./services_menu.module, line 17

Code

function services_menu_services_resources() {
  return array(
    'menu' => array(
      'retrieve' => array(
        'help' => 'Retrieves a menu',
        'file' => array(
          'type' => 'inc',
          'module' => 'services_menu',
          'name' => 'services_menu.resource',
        ),
        'callback' => '_services_menu_retrieve',
        'access callback' => '_services_menu_access',
        'access arguments' => array(
          'view',
        ),
        'access arguments append' => TRUE,
        'args' => array(
          array(
            'name' => 'menu_name',
            'type' => 'string',
            'description' => 'The name of the menu to get',
            'source' => array(
              'path' => '0',
            ),
            'optional' => FALSE,
          ),
        ),
      ),
    ),
  );
}