function location_phone_token_list in Location 7.4
Same name and namespace in other branches
- 5.3 contrib/location_phone/location_phone.module \location_phone_token_list()
- 6.3 contrib/location_phone/location_phone.module \location_phone_token_list()
- 7.5 contrib/location_phone/location_phone.module \location_phone_token_list()
- 7.3 contrib/location_phone/location_phone.module \location_phone_token_list()
Implementation of hook_token_list().
File
- contrib/
location_phone/ location_phone.module, line 67 - Add phone number fields to Location address.
Code
function location_phone_token_list($type = 'all') {
if ($type == 'node' || $type == 'user' || $type == 'all') {
$tokens['location']['location-phone_N'] = t('Location Phone number (If there are multiple locations per node, N is the iteration, starting with 0)');
return $tokens;
}
}