You are here

function location_get_general_geocoder_list in Location 5.3

Same name and namespace in other branches
  1. 5 location.inc \location_get_general_geocoder_list()
  2. 6.3 location.inc \location_get_general_geocoder_list()
  3. 7.5 location.inc \location_get_general_geocoder_list()
  4. 7.3 location.inc \location_get_general_geocoder_list()
  5. 7.4 location.inc \location_get_general_geocoder_list()
2 calls to location_get_general_geocoder_list()
location_geocoding_options_form in ./location.admin.inc
location_geocoding_options_form_submit in ./location.admin.inc

File

./location.inc, line 637

Code

function location_get_general_geocoder_list() {
  static $list;
  if (!count($list)) {
    $files = file_scan_directory(drupal_get_path('module', 'location') . '/geocoding', '\\.inc$', array(
      '.',
      '..',
      'CVS',
      '.svn',
    ));
    foreach ($files as $full_path_name => $fileinfo) {
      $list[] = $fileinfo->name;
    }
  }
  return $list;
}