function node_field_node_field_types_options in Node Field 7.2
Get node field types options.
Return value
array Associative array of options.
1 call to node_field_node_field_types_options()
- _node_field_node_field_page_new_field_form in includes/
node_field.form.node_field.inc - Form element for new node field.
File
- includes/
node_field.form.node_field.inc, line 208 - Node fields forms.
Code
function node_field_node_field_types_options() {
$options = [];
// Populate node field types options.
$node_field_types = node_field_types_info();
foreach ($node_field_types as $node_field_type) {
$options[$node_field_type['type']] = $node_field_type['label'];
}
return $options;
}