function _phonefield_tel_support in Phone Field 7
Helper function to check for telsupport.
Return value
bool TRUE if at least one hook says tel: is supported, or there are no implementations of hook_honefield_supports_tel(), else FALSE.
2 calls to _phonefield_tel_support()
- theme_phonefield_formatter_phonefield_default in ./
phonefield.module - Theme function for 'default' text field formatter.
- theme_phonefield_formatter_phonefield_separate_link in ./
phonefield.module - Theme function for 'separate_link' text field formatter.
File
- ./
phonefield.module, line 410 - Hooks for a module that defines a simple phone number field type.
Code
function _phonefield_tel_support() {
$results = module_invoke_all('phonefield_supports_tel');
if (empty($results)) {
return TRUE;
}
$telsupport = FALSE;
foreach ($results as $result) {
if ($result) {
$telsupport = TRUE;
break;
}
}
return $telsupport;
}