function node_field_node_field_settings_form in Node Field 7.2
Get node field settings form.
Parameters
array $node_field: Node field to get settings form for.
1 call to node_field_node_field_settings_form()
- node_field_node_field_edit_form in includes/
node_field.form.node_field.inc - Settings form for single node field.
File
- includes/
node_field.field.inc, line 122 - Field types, settings, widget and formatters.
Code
function node_field_node_field_settings_form(array $node_field) {
$form = [];
$type = $node_field['type'];
$node_field_types = node_field_types_info();
$function = isset($node_field_types[$type]['settings']) ? $node_field_types[$type]['settings'] : FALSE;
if ($function && is_callable($function)) {
$form = $function($node_field);
drupal_alter('node_field_settings', $node_field, $form);
}
return $form;
}