function theme_link_widget_form_row in Link 5
Theme the display of a single form row
1 theme call to theme_link_widget_form_row()
- _link_widget_form in ./
link.module - Helper function renders the link widget in both single and multiple value cases.
File
- ./
link.module, line 543 - Defines simple link field types.
Code
function theme_link_widget_form_row($element) {
$output = '';
$output .= '<div class="link-field-row clear-block"><div class="link-field-subrow clear-block">';
if ($element['title']) {
$output .= '<div class="link-field-title link-field-column">' . drupal_render($element['title']) . '</div>';
}
$output .= '<div class="link-field-url' . ($element['title'] ? ' link-field-column' : '') . '">' . drupal_render($element['url']) . '</div>';
$output .= '</div>';
if ($element['attributes']) {
$output .= '<div class="link-attributes">' . drupal_render($element['attributes']) . '</div>';
}
$output .= drupal_render($element);
$output .= '</div>';
return $output;
}