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

regx - May 9, 2008 - 12:59
Status:active» patch (code needs review)

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.

AttachmentSize
email_v1.9.2.8_views_filter.patch2.06 KB

#2

Michael_XIII - July 30, 2008 - 10:34

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;

 
 

Drupal is a registered trademark of Dries Buytaert.