' . check_plain($element['#title']) . ''; } $contextual = ''; if (!empty($element['contextual_links'])) { $contextual = drupal_render($element['contextual_links']); $element['#attributes']['class'][] = 'contextual-links-region'; } // Use #attributes to customize a wrapper
. $attributes = ''; if (!empty($element['#attributes'])) { $attributes = drupal_attributes($element['#attributes']); } // Render any child items. if (!$element['#children']) { $element['#children'] = drupal_render_children($element); } // Build simple output. $output = "{$title}{$contextual}{$element['#children']}
"; return $output; }