You are here

function facetapi_preprocess_block in Facet API 6

Process variables for block.tpl.php.

Converts the md5() hash back to something human readable.

File

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

Code

function facetapi_preprocess_block(&$vars) {
  if ('facetapi' == $vars['block']->module) {
    $map = facetapi_delta_map_get();
    if (isset($map[$vars['block']->delta])) {
      $vars['block']->delta = str_replace(':', '-', $map[$vars['block']->delta]);
    }
  }
}