You are here

function views_plugin_style_galleria::find_image_field in Galleria 7

Searches for the image field to use.

1 call to views_plugin_style_galleria::find_image_field()
views_plugin_style_galleria::render in includes/views_plugin_style_galleria.inc
Render the display in this style.

File

includes/views_plugin_style_galleria.inc, line 63
Galleria style plugin for the Views module.

Class

views_plugin_style_galleria
Implements a style type plugin for the Views module.

Code

function find_image_field() {
  foreach ($this->view->display_handler
    ->get_handlers('field') as $id => $handler) {
    if ($handler instanceof views_handler_field_field && $handler->field_info['type'] == 'image') {
      return $id;
      break;
    }
  }
  return FALSE;
}