You are here

function node_field_link_settings in Node Field 7.2

Settings for link field.

1 string reference to 'node_field_link_settings'
node_field_types_info in includes/node_field.field.inc
Node field types info.

File

includes/node_field.field.inc, line 244
Field types, settings, widget and formatters.

Code

function node_field_link_settings($node_field) {
  $form['url'] = array(
    '#type' => 'textfield',
    '#title' => t('Url address'),
    '#default_value' => !empty($node_field['settings']['url']) ? $node_field['settings']['url'] : NULL,
  );
  return $form;
}