function node_field_text_long_settings in Node Field 7.2
Setting for text long field.
Parameters
array $node_field: Node field to get settings form for.
1 string reference to 'node_field_text_long_settings'
- node_field_types_info in includes/
node_field.field.inc - Node field types info.
File
- includes/
node_field.field.inc, line 151 - Field types, settings, widget and formatters.
Code
function node_field_text_long_settings(array $node_field) {
$form['use_text_format'] = [
'#type' => 'checkbox',
'#title' => t('Enable text formats'),
'#default_value' => !empty($node_field['settings']['use_text_format']) ? $node_field['settings']['use_text_format'] : 0,
];
return $form;
}