function forward_ds_fields_info in Forward 7.2
Same name and namespace in other branches
- 7.3 forward.module \forward_ds_fields_info()
Implements hook_ds_fields_info().
File
- ./
forward.module, line 153
Code
function forward_ds_fields_info($entity_type) {
$fields = array();
if ($entity_type == 'node') {
$ui_limit = array();
$bundles = node_type_get_types();
foreach ($bundles as $type => $bundle) {
if (variable_get('forward_display_' . $type, TRUE)) {
$ui_limit[] = $type . '|*';
}
}
$fields['node'] = array();
$fields['node']['forward_ds_field'] = array(
'title' => t('Forward link'),
'field_type' => DS_FIELD_TYPE_FUNCTION,
'function' => 'forward_ds_field_create',
'ui_limit' => $ui_limit,
);
}
return $fields;
}