'ul'); $options['class'] = array('default' => 'media-list-thumbnails'); $options['wrapper_class'] = array('default' => ''); return $options; } /** * Prevents a problem with views when get_row_class() is not set. */ public function get_row_class($row_index) { } /** * Add the base field (fid) to the query. */ public function query() { if (method_exists($this->view->query, 'add_field')) { // Normal file_managed based view. $this->view->query->add_field($this->view->base_table, $this->view->base_field); } if (method_exists($this->view->query, 'addField')) { // Search API based view. $this->view->query->addField('fid'); } parent::query(); } }