02
Jun
Jun
As I wrote in the previous article where we've created a custom Views Field Handler, now it`s time to create a custom Filter Handler for Views. As for the field handler we will create a custom module which will include the following:
1. In the .info file we shoul add:

2. In the example.module the hook_views_api() must be added.

3. hook_views_data() must be declared in example.views.inc which will be a new file created in the custom module.

If all steps are in place it`s time to build the filter handler into the example_handler_filter_field.inc

In the query you can also use values from the form_state. Also after the filter is added in the Filter Criteria in the view, a query alter is needed to filter after your chosen option from the Filter Handler.
Enjoy!
1. In the .info file we shoul add:

2. In the example.module the hook_views_api() must be added.

3. hook_views_data() must be declared in example.views.inc which will be a new file created in the custom module.

If all steps are in place it`s time to build the filter handler into the example_handler_filter_field.inc

In the query you can also use values from the form_state. Also after the filter is added in the Filter Criteria in the view, a query alter is needed to filter after your chosen option from the Filter Handler.
Enjoy!
Category View
Tags
activities
Aggregation
amazon
android
apache
API
appcelerator
application
assistant manager
backup
balance
brand recognition
business days
cache
camp
coding standards
command
commerce
community
context
cURL
customer engagement
customer portal
database
data integrity
deployment
developer
Drupal
drupal 7
drupal 8
Drupal Camp
Drupal Core
Drupal development
Drupal solution
Drush
e-commerce
events
filter
front-end developer
game
games
general
git
Global Training
google maps
integration
ios
job
Job fairs
jobs
kpi
maintenance
manual testing
memcache
mobile
mobile app
mobile application
mobile development
Module
modules
mysql
open source
Panels
performance
php
php developer
plans
project
project manager
promotion
qa
Quality Assurance
redis
registry
Relation
release candidate
remote team
responsibilities
responsive
screen resolutions
Scrum
Security
server
Services
session
skills
software
software testing
sprint
stock management system
studio
support
Targul de Cariere
team
team building
teambuilding
teamwork
testing
titanium
tutorial
Târgul de Cariere in IT
Unit Testing
update
Updates
usability
user experience
varnish
Views
Views Handler
web application
web application testing
web development
webservice
webshop
website usability