function location_cck_token_list in Location 6.3
Same name and namespace in other branches
- 7.5 contrib/location_cck/location_cck.module \location_cck_token_list()
- 7.4 contrib/location_cck/location_cck.module \location_cck_token_list()
Implementation of hook_token_list().
File
- contrib/
location_cck/ location_cck.module, line 474 - Defines location field type.
Code
function location_cck_token_list($type = 'all') {
if ($type == 'field') {
$tokens = array();
$fields = location_field_names(TRUE);
// @@@ We really need to rethink fields in location..
unset($fields['locpick']);
foreach ($fields as $k => $v) {
$tokens['location'][$k] = $v;
}
return $tokens;
}
}