Commit cf185eac authored by alexpott's avatar alexpott
Browse files

Issue #2003322 by toddtomlinson, borisson_, jibran: Rename Views method...

Issue #2003322 by toddtomlinson, borisson_, jibran: Rename Views method render_trim_text() to renderTrimText().
parent 3ed3a458
......@@ -1240,7 +1240,7 @@ public function renderText($alter) {
$suffix = '';
if (!empty($alter['trim']) && !empty($alter['max_length'])) {
$length = strlen($value);
$value = $this->render_trim_text($alter, $value);
$value = $this->renderTrimText($alter, $value);
if ($this->options['alter']['more_link'] && strlen($value) < $length) {
$tokens = $this->getRenderTokens($alter);
$more_link_text = $this->options['alter']['more_link_text'] ? $this->options['alter']['more_link_text'] : t('more');
......@@ -1290,7 +1290,7 @@ function render_altered($alter, $tokens) {
/**
* Trim the field down to the specified length.
*/
function render_trim_text($alter, $value) {
public function renderTrimText($alter, $value) {
if (!empty($alter['strip_tags'])) {
// NOTE: It's possible that some external fields might override the
// element type.
......
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