function _vsf_wysiwyg_get_text_format_fields in Visual select file 7
Find all text-ish fields in a bundle.
1 call to _vsf_wysiwyg_get_text_format_fields()
- vsf_wysiwyg_field_attach_presave in submodules/
vsf_wysiwyg/ vsf_wysiwyg.module - Implements hook_field_attach_presave().
File
- submodules/
vsf_wysiwyg/ vsf_wysiwyg.module, line 252
Code
function _vsf_wysiwyg_get_text_format_fields($entity_type, $bundle) {
$field_names =& drupal_static(__FUNCTION__, array());
if (!isset($field_names[$entity_type][$bundle])) {
$field_names[$entity_type][$bundle] = array();
$instances = field_info_instances($entity_type, $bundle);
foreach ($instances as $field_name => $instance) {
if (!empty($instance['settings']['text_processing'])) {
$field_names[$entity_type][$bundle][$field_name] = $field_name;
}
}
}
return $field_names[$entity_type][$bundle];
}