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.
Thanks for this great module. I am using it on a site which MUST be "accessible" (standards, all dropdowns must have labels), so I have created a patch. I know you are "feature frozen", however Drupal is widely used by Governments and Governments are obsessive about "standards", so please consider this. This is my first patch submission so I am a bit nervous! I have used fairly generic text for the label which suits my situation, but may not suit others. Look forward to your response.
Comment | File | Size | Author |
---|---|---|---|
shs_label.patch | 3.77 KB | scrypter |
Comments
Comment #1
ssoulless CreditAttribution: ssoulless commentedHello the patch you attaced is not well applied, if you download the version 7.x-1.x from the control version tab in the module's page you will see that the patch is applying in a folder modules/shs it should be applied inside the shs folder otherwise you cannot a pply well the patch...
Comment #2
ssoulless CreditAttribution: ssoulless commentedalso changing version to devel version
Comment #3
ssoulless CreditAttribution: ssoulless commentedI have correct the patch but the patch is deprecated, does not work with the actual dev, in my test site my shs fields are shown as textfields...
Comment #4
ssoulless CreditAttribution: ssoulless commentedClosing this as duplicate of https://drupal.org/node/1991490
Comment #5
stBorchertThanks for your contribution, scrypter.
I've committed a slightly modified version of your patch.
Using the latest development version you can assign labels to any level within your hierarchy. Simply override
hook_shs_js_settings_alter()
orhook_shs_FIELDNAME_js_settings_alter()
and set the "labels"-property in the field settings.See
hook_shs_FIELDNAME_js_settings_alter()
in shs.api.php for an example.Comment #8
NIKS_Artreaktor CreditAttribution: NIKS_Artreaktor commentedI have an Bug
If i using api
hook_shs_js_settings_alter()
for field in Views Exposed filter - it working - adding Label
But if you choose child (second select) "- ALL - "
It reset Main (first select) choice of select to ALL
FIX of this
Add JS code