You are here

function sarnia_ctools_plugin_post_alter in Sarnia 7

Implements hook_ctools_plugin_post_alter().

File

./sarnia.module, line 1234

Code

function sarnia_ctools_plugin_post_alter(&$plugin, &$info) {
  if ($plugin['module'] == 'facetapi' && ($plugin['name'] == 'facetapi_checkbox_links' || $plugin['name'] == 'facetapi_links')) {
    $plugin['handler']['query types'][] = 'sarnia_term';
  }
  if ($plugin['module'] == 'facetapi_multiselect' && $plugin['name'] == 'facetapi_multiselect') {
    $plugin['handler']['query types'][] = 'sarnia_term';
  }
  if ($plugin['module'] == 'facetapi_select' && $plugin['name'] == 'facetapi_select_dropdowns') {
    $plugin['handler']['query types'][] = 'sarnia_term';
  }
}