function views_handler_field_user_picture::element_type
Overrides views_handler_field::element_type
File
-
modules/
user/ views_handler_field_user_picture.inc, line 28
Class
- views_handler_field_user_picture
- Field handler for a simple renderer that allows using a themed user link.
Code
public 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';
}