You are here

function views_handler_field_prerender_list::get_items in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_field_prerender_list.inc \views_handler_field_prerender_list::get_items()
  2. 7.3 handlers/views_handler_field_prerender_list.inc \views_handler_field_prerender_list::get_items()

Return an array of items for the field.

Items should be stored in the result array, if possible, as an array with 'value' as the actual displayable value of the item, plus any items that might be found in the 'alter' options array for creating links, such as 'path', 'fragment', 'query' etc, such a thing is to be made. Additionally, items that might be turned into tokens should also be in this array.

File

handlers/views_handler_field_prerender_list.inc, line 91

Class

views_handler_field_prerender_list
Field handler to provide a list of items.

Code

function get_items($values) {
  $field = $values->{$this->field_alias};
  if (!empty($this->items[$field])) {
    return $this->items[$field];
  }
  return array();
}