'item_list', '#items' => array(), ); foreach ($vars['entrees_items'] as $entree) { $tid = $entree['tid']; $term_link = $entree['term_link']->toRenderable(); $term_link['#prefix'] = ''; $term_link['#suffix'] = ""; $index_link = $entree['index_link']->toRenderable(); $index_link['#prefix'] = ''; $index_link['#suffix'] = ""; $notice_link = $entree['notice_link']->toRenderable(); $notice_link['#prefix'] = ''; $notice_link['#suffix'] = ""; $entree = array( '#wrapper_attributes' => array( 'class' => array('term-'.$tid, 'entree'), 'tid' => $tid ), 'term_link' => $term_link, 'entree_content' => array( '#type' => 'container', '#attributes' => array( 'class' => 'entree-content' ), 'index_link' => $index_link, 'notice_link' => $notice_link, 'description' => array( '#type' => 'container', '#markup' => $entree['description'], '#attributes' => array('class'=>'term-description') ) ) ); // if (isset($entrees) && count($entrees) == count($terms)-3) { // $entree['#wrapper_attributes']['class'][] = 'opened'; // } // dpm($entree); $entrees['#items'][] = $entree; } $vars['entrees'] = render($entrees); }