How do I deal with drupal hook_views_tables?

Posted by wamp on Stack Overflow See other posts from Stack Overflow or by wamp
Published on 2010-05-26T04:17:15Z Indexed on 2010/05/26 4:21 UTC
Read the original article Hit count: 135

Filed under:
|

For the title field,I want to return node.title,but what I tried is not working:

return array('og' => array('name' => 'og',
            'join' => array('left' => array('table' => 'node',
                    'field' => 'nid'
                    ),
                'right' => array('field' => 'nid'
                    ),
                ),
            'fields' => array(
                'title' => array('name' => t('OG: Group: Group name'),
                    'table' => 'node',
                    'handler' => 'og_handler_field_title',
                    'help' => t('show group name.'),
                    'sortable' => true,
                    'sort_handler' => 'views_og_query_ogname',
                    'notafield' => false,
                    ),

© Stack Overflow or respective owner

Related posts about php

Related posts about drupal