function geocoder_permission in Geocoder 7
Implements hook_permission().
We define permissions for accessing geocoder over AJAX / services. There is one global permission which gives access to everything, and one permission per handler. The site-administrator can therefore fine tune which handlers are accessible. Note that to use AJAX with geocoder these permissions need to be set.
File
- ./
geocoder.module, line 237  
Code
function geocoder_permission() {
  $handler_info = geocoder_handler_info();
  $perms = array(
    'geocoder_service_all_handlers' => array(
      'title' => t('Can use all Geocoder handlers through AJAX / service'),
    ),
  );
  foreach ($handler_info as $name => $handler) {
    $perms['geocoder_service_handler_' . $name] = array(
      'title' => t('Can geocode using @handler through AJAX / service', array(
        '@handler' => $handler['title'],
      )),
    );
  }
  return $perms;
}