function fences_field_info_alter in Fences 7
Same name and namespace in other branches
- 7.2 fences.module \fences_field_info_alter()
Implements hook_field_info_alter().
File
- ./
fences.module, line 52 - Fences is a module providing configurable field wrappers.
Code
function fences_field_info_alter(&$info) {
// Change the default formatter to be the "fields only" formatter.
if (isset($info['field_collection']['default_formatter'])) {
$info['field_collection']['default_formatter'] = 'field_collection_fields';
}
}