You are here

function farm_api_development_menu in farmOS 7

Implements hook_menu().

File

modules/farm/farm_api/farm_api_development/farm_api_development.module, line 11
Farm API Development modules.

Code

function farm_api_development_menu() {
  $items = array();

  // Callback page for debugging OAuth flows.
  $items['api/authorized'] = [
    'title' => 'farmOS API Client Authorized',
    'description' => 'Callback page for authorized farmOS API Clients.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'farm_api_development_oauth_authorized_form',
    ),
    'access arguments' => array(
      'use oauth2 server',
    ),
  ];
  return $items;
}