How do I determine a filter type

Events happening in the community are now at Drupal community events on www.drupal.org.
drupalprojects's picture

hi

I want to know if there any embedded function that allow me to determine filter type for current views. For example I've created a view to display all nodes with node type "PAGE" and added some filters to this view, for example filtering by taxonomy terms for certain vocabulary and filtering by "Node: Author is anonymous" (just an example!!!!).

I'm developing custom module for views so mu question is how do I determine if some view filers are related to taxonomy tasks and some is not?

Also I've got an array of my filters. Can anybody explain it's values?

<?php
Array
(
    [
0] => Array
        (
            [
vid] => 1
           
[field] => term_node_1.tid
           
[label] =>
            [
optional] => 0
           
[is_default] => 0
           
[operator] => 1
           
[single] => 1
           
[position] => 0
           
[id] => term_node_1.tid
       
)

    [
1] => Array
        (
            [
vid] => 1
           
[field] => term_data.vid
           
[label] =>
            [
optional] => 0
           
[is_default] => 0
           
[operator] => 1
           
[single] => 1
           
[position] => 1
           
[id] => term_data.vid
       
)

)
?>

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: