Re: Get real field and table alias in a filter handler

Lluís Forns <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <CAGTZhB5+J_2fOKyWUGSemTTFrtSLEUhMz+Q_HARWKrrHjdQ-NA@mail.gmail.com>
Solved; I found the information in
$this->view->display['default']->handler->options['relationships'];



2011/10/26 Lluís Forns <[email protected]>:
> I am developing a module to expose a filter which search for selectect
> text inside selected fields of a view.
>
> I managed to code everything (most code taken from
> "http://drupal.org/project/views_groupby").
>
> My only problem is inside query(); I add a WHERE to the query with
> CONCAT(all fields) LIKE 'string'. My problem is when getting fields; i
> manage to get real_field, but I cannot get table_alias.
>
> Any hint?
>
> --
> *Ser freak no és imprescindible per ser informàtic, però ajuda.
> *La vida no ha de ser feliç, ha de ser plena.
> *Abans d'imprimir aquest missatge, pensa en el medi ambient.
>



-- 
*Ser freak no és imprescindible per ser informàtic, però ajuda.
*La vida no ha de ser feliç, ha de ser plena.
*Abans d'imprimir aquest missatge, pensa en el medi ambient.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.