You are here

function current_search_current_search_default_items in Facet API 7

Same name and namespace in other branches
  1. 6.3 contrib/current_search/current_search.current_search.inc \current_search_current_search_default_items()
  2. 7.2 contrib/current_search/current_search.current_search.inc \current_search_current_search_default_items()

Implements hook_current_search_default_items().

File

contrib/current_search/current_search.current_search.inc, line 32
Current Search default hooks.

Code

function current_search_current_search_default_items() {
  $items = array();
  $item = new stdClass();
  $item->disabled = FALSE;
  $item->api_version = 1;
  $item->name = 'standard';
  $item->label = 'Standard';
  $item->settings = array(
    'items' => array(
      'results' => array(
        'id' => 'text',
        'label' => 'Results',
        'text' => 'Search found [facetapi_results:result-count] item',
        'plural' => 1,
        'text_plural' => 'Search found [facetapi_results:result-count] items',
        'plural_condition' => 'facetapi_results:result-count',
        'wrapper' => 1,
        'element' => 'h3',
        'css' => 0,
        'classes' => '',
        'weight' => '-50',
      ),
      'active_items' => array(
        'id' => 'active',
        'label' => 'Active items',
        'pattern' => '[facetapi_active:active-value]',
        'keys' => 1,
        'css' => 0,
        'classes' => '',
        'weight' => '-49',
      ),
    ),
    'advanced' => array(
      'empty_searches' => 0,
    ),
  );
  $items[$item->name] = $item;
  return $items;
}