You are here

function theme_features_form_components in Features 7.2

Same name and namespace in other branches
  1. 6 theme/theme.inc \theme_features_form_components()
  2. 7 theme/theme.inc \theme_features_form_components()

Theme a set of features export components.

Parameters

array $vars: Variables for this theme hook.

Return value

string Rendered HTML.

File

theme/theme.inc, line 328
Theme functions and (pre)processors for 'features' module.

Code

function theme_features_form_components(&$vars) {
  $output = '';
  foreach (element_children($vars['form']) as $key) {
    unset($vars['form'][$key]['#title']);
    $output .= "<div class='features-select features-select-{$key}'>" . drupal_render($vars['form'][$key]) . "</div>";
  }
  $output .= drupal_render_children($vars['form']);
  return $output;
}