You are here

function search_api_location_views_data in Search API Location 7

Implements hook_views_data().

File

./search_api_location.module, line 122
Search API Location module author: dolarchik (d.olaresko@madcap.nl)

Code

function search_api_location_views_data() {
  $data = array();
  foreach (search_api_index_load_multiple(FALSE) as $index) {
    $data['search_api_index_' . $index->machine_name]['radius'] = array(
      'group' => t('Search'),
      'title' => t('Radius'),
      // The item it appears as on the UI,
      'help' => t('Location radius for @name index', array(
        '@name' => $index->name,
      )),
      // The help that appears on the UI,
      'filter' => array(
        'handler' => 'handler_filter_radius',
        'label' => t('Radius'),
      ),
    );
  }
  return $data;
}