You are here

function regions_api_service_service in Country codes API 6

Implementation of hook_service().

File

contrib/regions_api_service/regions_api_service.module, line 37
The module which exposes services related to regions_api

Code

function regions_api_service_service() {
  return array(
    array(
      '#method' => 'regions_api.load',
      '#callback' => 'regions_api_service_load',
      '#key' => FALSE,
      '#args' => array(
        array(
          '#name' => 'iso2',
          '#type' => 'string',
          '#description' => t('An iso2 country code.'),
        ),
      ),
      '#return' => 'array',
      '#help' => t('Returns an array of regions.'),
    ),
  );
}