Email not available as filter in Views
regx - May 9, 2008 - 11:44
| Project: | Email Field |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | patch (code needs review) |
Description
Email fields are not available as a filter option in Views.

#1
This did the trick for me.
I don't fully grock the way CCK builds it's views code though. The views api is pretty tricky as is, and cck works quite a bit of magic.
I hope this helps out someone else.
#2
Thanks, but your forgot to set 'sortable' => true some lines earlier - near lines 31-35
case 'database columns':
$columns = array(
'email' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => true),
);
return $columns;