You are here

function angularjs_map_facetapi_default_facet_settings in AngularJS 7

Implements hook_facetapi_default_facet_settings().

File

modules/angularjs_map/angularjs_map.facetapi_defaults.inc, line 10
angularjs_map.facetapi_defaults.inc

Code

function angularjs_map_facetapi_default_facet_settings() {
  $export = array();
  $facet = new stdClass();
  $facet->disabled = FALSE;

  /* Edit this to true to make a default facet disabled initially */
  $facet->api_version = 1;
  $facet->name = 'search_api@earthquake:restws:field_felt';
  $facet->searcher = 'search_api@earthquake';
  $facet->realm = 'restws';
  $facet->facet = 'field_felt';
  $facet->enabled = TRUE;
  $facet->settings = array(
    'weight' => 0,
    'widget' => 'restws_search_api_raw',
    'filters' => array(),
    'active_sorts' => array(
      'active' => 'active',
      'count' => 'count',
      'display' => 'display',
      'indexed' => 0,
    ),
    'sort_weight' => array(
      'active' => '-50',
      'count' => '-49',
      'display' => '-48',
      'indexed' => '0',
    ),
    'sort_order' => array(
      'active' => '3',
      'count' => '3',
      'display' => '4',
      'indexed' => '4',
    ),
    'empty_behavior' => 'none',
    'soft_limit' => '20',
    'nofollow' => 1,
    'show_expanded' => 0,
    'empty_text' => array(
      'value' => '',
      'format' => 'filtered_html',
    ),
    'submit_realm' => 'Save and go back to realm settings',
  );
  $export['search_api@earthquake:restws:field_felt'] = $facet;
  $facet = new stdClass();
  $facet->disabled = FALSE;

  /* Edit this to true to make a default facet disabled initially */
  $facet->api_version = 1;
  $facet->name = 'search_api@earthquake:restws:field_magnitude';
  $facet->searcher = 'search_api@earthquake';
  $facet->realm = 'restws';
  $facet->facet = 'field_magnitude';
  $facet->enabled = TRUE;
  $facet->settings = array(
    'weight' => 0,
    'widget' => 'restws_search_api_raw',
    'filters' => array(),
    'active_sorts' => array(
      'active' => 'active',
      'indexed' => 'indexed',
      'count' => 'count',
      'display' => 'display',
    ),
    'sort_weight' => array(
      'active' => '-50',
      'count' => '-48',
      'display' => '-47',
      'indexed' => '-49',
    ),
    'sort_order' => array(
      'active' => '3',
      'count' => '3',
      'display' => '4',
      'indexed' => '4',
    ),
    'empty_behavior' => 'none',
    'soft_limit' => '20',
    'nofollow' => 1,
    'show_expanded' => 0,
    'empty_text' => array(
      'value' => '',
      'format' => 'filtered_html',
    ),
    'submit_realm' => 'Save and go back to realm settings',
  );
  $export['search_api@earthquake:restws:field_magnitude'] = $facet;
  return $export;
}