You are here

function views_handler_field::element_type in Views (for Drupal 7) 6.2

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

Return DIV or SPAN based upon the field's element type.

2 methods override views_handler_field::element_type()
views_handler_field_markup::element_type in handlers/views_handler_field_markup.inc
Return DIV or SPAN based upon the field's element type.
views_handler_field_user_picture::element_type in modules/user/views_handler_field_user_picture.inc
Return DIV or SPAN based upon the field's element type.

File

handlers/views_handler_field.inc, line 137

Class

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

Code

function element_type() {
  if (isset($this->definition['element type'])) {
    return $this->definition['element type'];
  }
  return 'span';
}