Today I needed to create a view the filtered items by a range of prices. The prices for these nodes were stored in a CCK number field. After searching for an easy 'plug and play' method of doing this I quickly began writing my own code to accomplish this task. To summarize, I accomplished this by using the following functions:
- hook_form_alter()
- hook_views_query_alter()
Step 1.
Begin by creating your view and adding your CCK number field as an exposed filter. You'll want to be sure that you use the 'is between' operator.