function location_views_arguments in Location 5
Same name and namespace in other branches
- 5.3 contrib/location_views/location_views.module \location_views_arguments()
File
- contrib/
location_views/ location_views.module, line 665 - Views-enables the location module.
Code
function location_views_arguments() {
$arguments = array(
'city' => array(
'name' => t('Location: City'),
'handler' => 'location_views_handler_arg_city',
'option' => 'string',
'help' => t('This argument allows users to filter a view by specifying the city. Set the option to the number of characters to use in summaries, using 0 for full name; use 1 for an A/B/C style directory of cities.'),
),
'province' => array(
'name' => t('Location: Province'),
'handler' => 'location_views_handler_arg_province',
'help' => t('This argument allows users to filter a view by specifying the province.'),
),
'country' => array(
'name' => t('Location: Country'),
'handler' => 'location_views_handler_arg_country',
'help' => t('This argument allows users to filter a view by specifying the country.'),
),
);
if (module_exists('usernode')) {
$arguments['user_city'] = array(
'name' => t('User Location: City'),
'handler' => 'location_views_handler_arg_user_city',
'option' => 'string',
'help' => t('This argument allows users to filter a view by specifying the city. Set the option to the number of characters to use in summaries, using 0 for full name; use 1 for an A/B/C style directory of cities.'),
);
$arguments['user_province'] = array(
'name' => t('User Location: Province'),
'handler' => 'location_views_handler_arg_user_province',
'help' => t('This argument allows users to filter a view by specifying the province.'),
);
$arguments['user_country'] = array(
'name' => t('User Location: Country'),
'handler' => 'location_views_handler_arg_user_country',
'help' => t('This argument allows users to filter a view by specifying the country.'),
);
}
return $arguments;
}