You are here

function current_search_current_search_default_items in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 contrib/current_search/current_search.current_search.inc \current_search_current_search_default_items()
  2. 7 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 30
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 [result-count] item',
        'plural' => 1,
        'text_plural' => 'Search found [result-count] items',
        'plural_condition' => 'result-count',
        'wrapper' => 1,
        'element' => 'h3',
        'css' => 0,
        'classes' => '',
        'weight' => '-50',
      ),
      'active_items' => array(
        'id' => 'active',
        'label' => 'Active items',
        'pattern' => '[active-value]',
        'keys' => 1,
        'css' => 0,
        'classes' => '',
        'weight' => '-49',
      ),
    ),
    'advanced' => array(
      'empty_searches' => 0,
    ),
  );
  $items[$item->name] = $item;
  return $items;
}