additional_fields['line_changes_added'] = 'line_changes_added'; $this->additional_fields['line_changes_removed'] = 'line_changes_removed'; } function query() { $this->ensure_my_table(); $this->add_additional_fields(); } function render($values) { $added = $values->{$this->aliases['line_changes_added']}; $removed = $values->{$this->aliases['line_changes_removed']}; $additions = format_plural($added, '1 addition', '@count additions'); $removals = format_plural($removed, '1 deletion', '@count deletions'); return t('!addition & !removal', array('!addition' => $additions, '!removal' => $removals)); } }