1 views_handler_field_prerender_list.inc views_handler_field_prerender_list::render($values)

Render the field.

This function is deprecated, but left in for older systems that have not yet or won't update their prerender list fields. If a render_item method exists, this will not get used by advanced_render.

Overrides views_handler_field::render

File

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

Class

views_handler_field_prerender_list
Field handler to provide a list of items.

Code

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