You are here

function views_plugin_style_lineage_nested::respond_to_filter in Taxonomy Lineage 7

Same name and namespace in other branches
  1. 6 views_plugin_style_lineage_nested.inc \views_plugin_style_lineage_nested::respond_to_filter()
1 call to views_plugin_style_lineage_nested::respond_to_filter()
views_plugin_style_lineage_nested::options_form in plugins/views_plugin_style_lineage_nested.inc
Render the given style.

File

plugins/views_plugin_style_lineage_nested.inc, line 13
Views style plugin that allows a view to be rendered as a nested list, based on Lineage's term hierarchy.

Class

views_plugin_style_lineage_nested
Implements views_plugin_style.

Code

function respond_to_filter($filter) {
  $allowed = array(
    'views_handler_filter_term_node_tid',
    'views_handler_filter_term_node_tid_depth',
    'views_handler_argument_term_node_tid',
    'views_handler_argument_term_node_tid_depth',
  );
  if (in_array($filter, $allowed)) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}