1 views_handler_field_prerender_list.inc views_handler_field_prerender_list::render_items($items)

Render all items in this field together.

When using advanced render, each possible item in the list is rendered individually. Then the items are all pasted together.

File

core/modules/views/handlers/views_handler_field_prerender_list.inc, line 93
Definition of views_handler_field_prerender_list.

Class

views_handler_field_prerender_list
Field handler to provide a list of items.

Code

function render_items($items) {
  if (!empty($items)) {
    if ($this->options['type'] == 'separator') {
      return implode($this->sanitize_value($this->options['separator'], 'xss_admin'), $items);
    }
    else {
      return theme('item_list', 
      array(
        'items' => $items,
        'title' => NULL,
        'type' => $this->options['type']
      ));
    }
  }
}