function location_fax_views_tables in Location 5.3
File
- contrib/
location_fax/ location_fax.module, line 55 - Add fax number fields to Location address.
Code
function location_fax_views_tables() {
$tables['location_fax'] = array(
'name' => 'location_fax',
'join' => array(
'left' => array(
'table' => 'location',
'field' => 'lid',
),
'right' => array(
'field' => 'lid',
),
),
'fields' => array(
'fax' => array(
'name' => t('Location: Fax'),
'sortable' => TRUE,
),
),
'filters' => array(
'has_fax' => array(
'field' => 'fax',
'name' => t('Location: Has fax'),
'operator' => array(
'IS NOT' => t('Has fax'),
'IS' => t('No fax'),
),
'handler' => 'views_handler_filter_null',
),
),
);
return $tables;
}