Drupal 7 – Override the Flag option names in Views Exposed Filter using String Overrides

In the HKNA project, i exposed a flag in a view but it turns on the available option names are True and False instead of Yes and No.
string-overrides-1
 

At first i thought i need to either override the view exposed filter template or create a custom module and write hook to preprocess the view. Luckily, i found the String Overrides module.

After installed the String Overrides module, you could set the string @ Administration » Configuration » Regional and language » String overrides. Add the True and False mapping as follow.
string-overrides-2
 

Save and check the exposed filter again.
string-overrides-3
 

Done =)

Reference:

Advertisements

One thought on “Drupal 7 – Override the Flag option names in Views Exposed Filter using String Overrides”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s