facetapi_test.current_search.inc 873 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @file
  4. * Current Search default hooks.
  5. */
  6. /**
  7. * Implements hook_current_search_default_items().
  8. */
  9. function facetapi_test_current_search_default_items() {
  10. $items = array();
  11. $item = new stdClass;
  12. $item->disabled = FALSE;
  13. $item->api_version = 1;
  14. $item->name = 'second';
  15. $item->label = 'Second';
  16. $item->settings = array(
  17. 'items' => array(
  18. 'results' => array(
  19. 'id' => 'text',
  20. 'label' => 'Results',
  21. 'text' => 'Second current search block',
  22. 'plural' => 0,
  23. 'text_plural' => '',
  24. 'plural_condition' => 'facetapi_results:result-count',
  25. 'wrapper' => 1,
  26. 'element' => 'h3',
  27. 'css' => 0,
  28. 'classes' => '',
  29. 'weight' => '-50',
  30. ),
  31. ),
  32. 'advanced' => array(
  33. 'empty_searches' => 0,
  34. ),
  35. );
  36. $items[$item->name] = $item;
  37. return $items;
  38. }