Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Mar 2012 at 03:25 UTC
Updated:
11 Apr 2012 at 18:50 UTC
After finally getting around to using hook_views_post_render() as per the example I noticed a horrible error in the example. Instead of the $replace_pairs array parameter being an associative array it is an indexed array, which means any occurrence of the string "0" in $output will be replaced by "
" and likewise for the string "1" by "output for FIELD of nid 1".
Anyway, patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| Fix-strtr-example-in-views.api_.php_.patch | 867 bytes | mstrelan |
Comments
Comment #1
tim.plunkettGood catch!
Comment #2
dawehnerLooks perfect, thanks!
Committed to 7.x-3.x