As per issue #1150988: Block for search filters based on custom fields displaying field keys instead of labels, it would make a more robust API to allow for options to be passed the the map callback.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1151086-map-options-3.patch | 1.58 KB | pwolanin |
| #2 | 1151086-map-options-2.patch | 1.56 KB | pwolanin |
| #1 | facetapi-1151086-1.patch | 1.67 KB | cpliakas |
Comments
Comment #1
cpliakas commentedThe attached patch adds the functionality.
Comment #2
pwolanin commentedI came up with nearly the same myself, but not using call_user_func_array() which is a bit slower than directly invoking with the params.
Comment #3
pwolanin commentedActually, for consistency, we should use call_user_func() both places, which allows then the callback to be an array specifying a class or instance + method.
Comment #4
cpliakas commented#3 looks good to me. Commit when ready.
Comment #5
pwolanin commentedcommitted.