Archive for September, 2014

Creating custom filters with drupal and views

If you want to know how to create custom filters with Drupal and view please follow the step from the link

But you need to remember some missing information :-

it is done in views api 2 , so function definition you need to change. for example

$this->query->add_where($this->options[‘group’], “term_node.tid = %d”, $value); should be

$this->query->add_where($this->options[‘group’], “term_node.tid”, $value,’=’);

ofcourse remember to add those files inside file, otherwise you will see broken handlers in your view.


Leave a comment