function _qtip_is_supported_field in qTip (Stylish jQuery Tooltips) 7.2
Check to see whether a field type and it's widget type is supported.
2 calls to _qtip_is_supported_field()
- qtip_field_field_widget_form_alter in modules/
qtip_field/ qtip_field.module - Implements hook_field_widget_form_alter().
- qtip_field_form_field_ui_field_edit_form_alter in modules/
qtip_field/ qtip_field.module - Implements hook_form_FORM_ID_alter().
File
- modules/
qtip_field/ qtip_field.module, line 226
Code
function _qtip_is_supported_field($form_type, $widget_type) {
// Only display qTip settings for fields that are currently supported.
$supported_fields = qtip_supported_fields();
if (array_key_exists($form_type, $supported_fields)) {
$supported_type = $supported_fields[$form_type];
// If $supported_type is empty then all widgets for the type are supported.
if (!empty($supported_type) && !in_array($widget_type, $supported_type)) {
// The current field type and it's widget are not supported.
return FALSE;
}
return TRUE;
}
return FALSE;
}