Closed (fixed)
Project:
Facet API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2011 at 08:44 UTC
Updated:
10 Jan 2012 at 19:40 UTC
Patch adds more context to the theme. No API change.
| Comment | File | Size | Author |
|---|---|---|---|
| block-title-more-context.patch | 577 bytes | amitaibu |
Comments
Comment #1
cpliakas commentedI can definitely see where this would be useful. Marking as "needs work" for the minor nit-pick that the array key should be
facet_nameinstead offacetfor consistency with the nomenclature used throughout the rest of the module. In other areas,facet_nameis used for the machine readable name of the facet, whereasfacetis always the array containing the definition returned byfacetapi_facet_load(). Again, a very minor change, otherwise this patch is RTBC and will be integrated in.Thanks for the contribution,
Chris
Comment #2
amitaibu> facet_name is used for the machine readable name of the facet, whereas facet is always the array containing the definition returned by facetapi_facet_load()
Actually in the patch, I am passing a full array that holds also the facet itself. Do you wish I pass only the
facet_nameso others will have tofacetapi_facet_load()?We should probably make sure in follow up patches, that we always pass the same context (e.g. facet_name) to all the theme functions.
Comment #3
cpliakas commentedI'm sorry! I misread your patch. If it is passing the full facet definition, then that is fine by me. I think passing the full array is better anyways, because you have more information to use and eliminate the need to call
facetapi_facet_load()in theme functions. I agree with you that for consistency in follow-up patches we should always pass the same context, i.e. the full facet definition.Comment #4
cpliakas commentedCommitted with a few minor tweaks at http://drupalcode.org/project/facetapi.git/commit/7519833.
Thanks, and congrats on becoming the 17th committer to Facet API.