You are here

function location_views_handler_arg_postal_code in Location 5.3

Postal code argument handler.

1 string reference to 'location_views_handler_arg_postal_code'
location_views_arguments in contrib/location_views/location_views.module

File

contrib/location_views/location_views.module, line 737
Views-enables the location module.

Code

function location_views_handler_arg_postal_code($op, &$query, $argtype, $arg = '') {
  switch ($op) {
    case 'link':
      return l($query->postal_code == t('unknown') ? t('unknown') : $query->postal_code, "{$arg}/{$query->postal_code}");
    default:
      return location_views_handler_any($op, $query, $argtype, $arg, 'node', 'postal_code');
  }
}