By nextpulse on
In hook_views_default_views(), I have:
$handler->override_option('filters', array(.........)...
I want to add an additional check against a custom table - how would I do that?
For example, filter on mytable.mycol = 'home', I used the following (which did not work):
'mytype' => array(
'operator' => '=',
'value' => 'home',
'group' => '1',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'mytype,
'table' => 'mytable',
'field' => 'mycol',
'relationship' => 'none',
),
[Edited to add <code> and </code> tags; nevets]