Slide 7 - Creating an Exposed Filter

Last modified: March 24, 2007 - 15:39

function searchdemo_views_tables() {
  $tables['searchdemo_users'] = array(
    'name' => 'users',
    'join' => array(
      'left' => array('table' => 'node', 'field' => 'uid'),
      'right' => array('field' => 'uid'),
    ),
    'filters' => array(
      'name' => array(
        'name' => t('Node: Author Name contains'),
        'operator' => 'views_handler_operator_like',
        'handler' => 'views_handler_filter_like',
        'help' => t('filter by a particular user.'),
      ),
    )
  );
  return $tables;
}

This presentation supported by CivicActions

 
 

Drupal is a registered trademark of Dries Buytaert.