'; $stripes = array('even' => 'odd', 'odd' => 'even'); $parity = 'even'; foreach (element_children($form) as $aid) { $parity = $stripes[$parity]; $classes = array('attribute', 'attribute-' . $aid, $parity); $output .= '
'; $output .= drupal_render($form[$aid]); $output .= '
'; } $output .= drupal_render_children($form) . ''; return $output; }