You are here

function theme_link_field_settings in Link 6.2

Same name and namespace in other branches
  1. 5 link.module \theme_link_field_settings()
  2. 6 link.module \theme_link_field_settings()

Theme the settings form for the link field.

1 theme call to theme_link_field_settings()
link_field_settings in ./link.module
Implementation of hook_field_settings().

File

./link.theme.inc, line 11
Theme functions for the link module.

Code

function theme_link_field_settings($form) {
  $title_value = drupal_render($form['title_value']);
  $title_checkbox = drupal_render($form['title']['value']);

  // Set Static Title radio option to include the title_value textfield.
  $form['title']['value'] = array(
    '#value' => '<div class="container-inline">' . $title_checkbox . $title_value . '</div>',
  );

  // Reprint the title radio options with the included textfield.
  return drupal_render($form);
}