function theme_cck_phone_mobile_tel in Phone Number 6
Theme function for mobile tel.
2 theme calls to theme_cck_phone_mobile_tel()
- theme_cck_phone_formatter_default in ./
cck_phone.module - Theme function for 'default' or global phone number field formatter.
- theme_cck_phone_formatter_local in ./
cck_phone.module - Theme function for 'local' phone number field formatter.
File
- ./
cck_phone.module, line 255 - Defines phone number fields for CCK. Provide some verifications on the phone numbers
Code
function theme_cck_phone_mobile_tel($element, $phone = '') {
$item = $element['#item'];
// Mobile browsers support
if (isset($item['mobile_output']) && $item['mobile_output'] == TRUE) {
// Always output as global phone number without separator, leave the $phone display unchanged
$cc = cck_phone_countrycodes($item['country_codes']);
$tel = $cc['code'] . $item['number'];
$phone = '<a href="tel:' . $tel . '">' . $phone . '</a>';
}
return $phone;
}