Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This may be useful for somebody.
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#9 | views-add_substr_operation_to_view_alter_for_f-1513394-9.patch | 2.71 KB | Andrew Answer |
| |||
#6 | 1513394-views-add_substr-6.patch | 2.73 KB | pcambra |
#4 | 1513394-views-add_substr-3.patch | 3.16 KB | pcambra |
#3 | 1513394-views-add_substr-3.patch | 3.16 KB | pcambra |
#1 | views-add_substr.patch | 3.14 KB | pcambra |
Comments
Comment #1
pcambraOoops, too many white spaces.
Comment #2
tim.plunkettNeeds
'bool' => TRUE
Comment #3
pcambraFixed
Comment #4
pcambraFixed
Comment #5
dawehnerIn general this patch looks fine!
What about using 0 as default value, so it is a bit clearer what to input here.
Why not use drupal_substr here
Comment #6
pcambraI've implemented the suggested changes and changed a little the description as substr is not called directly anymore.
Rerolled to last 7.x dev
Comment #7
devad CreditAttribution: devad as a volunteer commentedThis issue is old and this functionality is never committed... maybe it is considered too specific to be included into main views module.
Is it possible for it to become new tiny views contrib module maybe?
And D8 version would be nice as well. :)
Comment #8
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 6 year old patch in #6 to views_handler_field.inc does not apply to the latest views 7.x-3.x-dev.
Comment #9
Andrew Answer CreditAttribution: Andrew Answer as a volunteer commentedPatch rerolled.