summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Wehner2012-02-15 18:44:02 (GMT)
committer Daniel Wehner2012-02-15 18:44:16 (GMT)
commit9d9b4f60ab4ce23309e1251d596a5e816d312b8f (patch)
tree5dacb7d44a4206baaa0ce61bcacb9053c711a2e6
parent6290ba87a917c8257a10bb73bac751f24918e52a (diff)
#1377954 by MiSc: Allow to customize field HTML for fields and user-picture fields
-rw-r--r--modules/user/views_handler_field_user_picture.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/user/views_handler_field_user_picture.inc b/modules/user/views_handler_field_user_picture.inc
index 2e9dc50..ebebf4a 100644
--- a/modules/user/views_handler_field_user_picture.inc
+++ b/modules/user/views_handler_field_user_picture.inc
@@ -17,6 +17,20 @@ class views_handler_field_user_picture extends views_handler_field {
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';
}