Commit 960eb828 authored by alexpott's avatar alexpott

Issue #2002480 by illeace, jeroen12345: Rename Views method...

Issue #2002480 by illeace, jeroen12345: Rename Views method element_wrapper_type() to elementWrapperType().
parent df133684
......@@ -246,7 +246,7 @@ function element_label_type($none_supported = FALSE, $default_empty = FALSE) {
/**
* Return an HTML element for the wrapper based upon the field's element type.
*/
function element_wrapper_type($none_supported = FALSE, $default_empty = FALSE) {
public function elementWrapperType($none_supported = FALSE, $default_empty = FALSE) {
if ($none_supported) {
if ($this->options['element_wrapper_type'] === '0') {
return 0;
......
......@@ -253,7 +253,7 @@ function template_preprocess_views_view_fields(&$vars) {
$object->class = drupal_clean_css_identifier($id);
$previous_inline = $object->inline;
$object->inline_html = $object->handler->element_wrapper_type(TRUE, TRUE);
$object->inline_html = $object->handler->elementWrapperType(TRUE, TRUE);
if ($object->inline_html === '' && $vars['options']['default_field_elements']) {
$object->inline_html = $object->inline ? 'span' : 'div';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment