1 views_handler_field_user_picture.inc views_handler_field_user_picture::element_type($none_supported = FALSE, $default_empty = FALSE, $inline = FALSE)

Return an HTML element based upon the field's element type.

Overrides views_handler_field::element_type

File

core/modules/user/views/views_handler_field_user_picture.inc, line 20
Definition of views_handler_field_user_picture.

Class

views_handler_field_user_picture
Field handler to provide simple renderer that allows using a themed user link.

Code

function element_type($none_supported = FALSE, $default_empty = FALSE, $inline = FALSE) {
  if ($inline) {
    return 'span';
  }
  if ($none_supported) {
    if ($this->options['element_type'] === '0') {
      return '';
    }
  }
  if ($this->options['element_type']) {
    return check_plain($this->options['element_type']);
  }
  if ($default_empty) {
    return '';
  }
  if (isset($this->definition['element type'])) {
    return $this->definition['element type'];
  }

  return 'div';
}