1 link.theme.inc | theme_link_field_wrapper($variables) |
Wraps the link field form element.
File
- core/
modules/ link/ link.theme.inc, line 164 - Theme functions and preprocessing for Link module output.
Code
function theme_link_field_wrapper($variables) {
$element = $variables['element'];
// Wrap in a div with an ID for #states.
if (isset($element['#children'])) {
$element['#children'] = '<div id="' . $element['#id'] . '" class="container-inline-link-field">' . $element['#children'] . '</div>';
}
return theme('form_element', $element);
}