You are here

function facetapi_block in Facet API 6

Same name and namespace in other branches
  1. 6.3 facetapi.block.inc \facetapi_block()

Implementation of hook_block().

File

./facetapi.module, line 1301
An abstracted facet API that can be used by various search backens.

Code

function facetapi_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      module_load_include('inc', 'facetapi', 'facetapi.widget');
      return facetapi_block_info();
    case 'view':
      module_load_include('inc', 'facetapi', 'facetapi.widget');
      return facetapi_block_view($delta);
  }
}