You are here

public function views_handler_field::theme_functions in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_field.inc \views_handler_field::theme_functions()
  2. 6.2 handlers/views_handler_field.inc \views_handler_field::theme_functions()

Build a list of suitable theme functions for this view.

1 call to views_handler_field::theme_functions()
views_handler_field::theme in handlers/views_handler_field.inc
Call out to the theme() function.

File

handlers/views_handler_field.inc, line 1599
Definition of views_handler_field.

Class

views_handler_field
Base field handler that has no options and renders an unformatted field.

Code

public function theme_functions() {
  $themes = array();
  $hook = 'views_view_field';
  $display = $this->view->display[$this->view->current_display];
  if (!empty($display)) {
    $themes[] = $hook . '__' . $this->view->name . '__' . $display->id . '__' . $this->options['id'];
    $themes[] = $hook . '__' . $this->view->name . '__' . $display->id;
    $themes[] = $hook . '__' . $display->id . '__' . $this->options['id'];
    $themes[] = $hook . '__' . $display->id;
    if ($display->id != $display->display_plugin) {
      $themes[] = $hook . '__' . $this->view->name . '__' . $display->display_plugin . '__' . $this->options['id'];
      $themes[] = $hook . '__' . $this->view->name . '__' . $display->display_plugin;
      $themes[] = $hook . '__' . $display->display_plugin . '__' . $this->options['id'];
      $themes[] = $hook . '__' . $display->display_plugin;
    }
  }
  $themes[] = $hook . '__' . $this->view->name . '__' . $this->options['id'];
  $themes[] = $hook . '__' . $this->view->name;
  $themes[] = $hook . '__' . $this->options['id'];
  $themes[] = $hook;
  return $themes;
}