Commit e63a3096 authored by alexpott's avatar alexpott

Issue #2002472 by endorn: Rename Views method element_label_classes() to elementLabelClasses().

parent 9dd39359
......@@ -337,7 +337,7 @@ function tokenize_value($value, $row_index = NULL) {
/**
* Return the class of the field's label.
*/
function element_label_classes($row_index = NULL) {
public function elementLabelClasses($row_index = NULL) {
$classes = explode(' ', $this->options['element_label_class']);
foreach ($classes as &$class) {
$class = $this->tokenize_value($class, $row_index);
......
......@@ -298,7 +298,7 @@ function template_preprocess_views_view_fields(&$vars) {
$attributes['class'][] = 'views-label-' . $object->class;
}
$element_label_class = $object->handler->element_label_classes($view->row_index);
$element_label_class = $object->handler->elementLabelClasses($view->row_index);
if ($element_label_class) {
$attributes['class'][] = $element_label_class;
}
......@@ -607,7 +607,7 @@ function template_preprocess_views_view_table(&$vars) {
$vars['header_classes'][$field]['class'][] = 'views-field-' . $vars['fields'][$field];
}
$vars['header_classes'][$field] = new Attribute($vars['header_classes'][$field]);
$class = $fields[$field]->element_label_classes(0);
$class = $fields[$field]->elementLabelClasses(0);
if ($class) {
$vars['header_classes'][$field]['class'][] = $class;
}
......
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