function getlocations_fields_columns in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_fields/getlocations_fields.functions.inc \getlocations_fields_columns()
2 calls to getlocations_fields_columns()
- getlocations_fields_tokens in modules/
getlocations_fields/ getlocations_fields.functions.inc - Implements hook_tokens().
- getlocations_fields_token_info in modules/
getlocations_fields/ getlocations_fields.functions.inc - Implements hook_token_info(). derived from location_cck module
File
- modules/
getlocations_fields/ getlocations_fields.functions.inc, line 820 - getlocations_fields.functions.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_fields_columns($keyonly = FALSE) {
$columns = array(
'name' => t('Name'),
'street' => t('Street'),
'additional' => t('Additional'),
'city' => t('City'),
'province' => t('Province'),
'postal_code' => t('Postal code'),
'latitude' => t('Latitude'),
'longitude' => t('Longitude'),
'country' => t('Country'),
'country_name' => t('Country name'),
'phone' => t('Phone'),
'mobile' => t('Mobile'),
'fax' => t('Fax'),
'marker' => t('Marker'),
);
if ($keyonly) {
return array_keys($columns);
}
return $columns;
}