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.
As an IP Path Access administrator, I may have many access rules for a variety of use cases. It would be useful to have a description value assigned to each rule. This would help differentiate rules for the benefit of all site administrators.
In the admin form, I recommend that:
- The field be labeled Title
- The text input be positioned above the IP Address input
- The Title value appears to the left of PATH ALIAS in the table list of the IP access rules
Modules with similar functionality are: CSS Injector and Add to Head.
Comment | File | Size | Author |
---|---|---|---|
#6 | text_field_to_input_a_rule_title-2701395-6.patch | 2.1 KB | pallavi_sugandhi |
Comments
Comment #2
pallavi_sugandhi CreditAttribution: pallavi_sugandhi at SNP Technologies, Inc. commentedHere is the attached patch for Text field to input a rule title. Please review
Comment #3
mikebrooks CreditAttribution: mikebrooks at SNP Technologies, Inc. commentedComment #4
darrell_ulm CreditAttribution: darrell_ulm as a volunteer commentedThe patch in #2 looks reasonable https://www.drupal.org/node/2701395#comment-11048453
Someone other than the developer should test. I've been short on time lately.
Thank you.
Comment #5
mikebrooks CreditAttribution: mikebrooks at SNP Technologies, Inc. commentedHi pallavi_sugandhi,
Thanks for your effort. The code to add the Title fields works well, but I did find two problems:
In ip_path_access_schema(), you set the title as:
Following the method used by the popular CSS Injector module, I suggest changing it to:
In the form, the text input should have a maxlength attribute. I suggest a maxlength="128", again following the CSS Injector example.
Comment #6
pallavi_sugandhi CreditAttribution: pallavi_sugandhi at SNP Technologies, Inc. commentedI have modified the patch file.
Comment #7
mikebrooks CreditAttribution: mikebrooks at SNP Technologies, Inc. commentedPatch #6 looks good to me. Thanks pallavi_sugandhi.
darrell_ulm, I have assigned the issue to you for approval. If the patch meets your approval, please assign to Nishad who can complete the merge into the Dev branch and close the issue.
Comment #8
darrell_ulm CreditAttribution: darrell_ulm as a volunteer commentedCode looks good to add the title for a rule, go ahead.
Comment #9
darrell_ulm CreditAttribution: darrell_ulm as a volunteer commentedComment #11
bhide.nishad CreditAttribution: bhide.nishad at Clarion Technologies commentedPatch has been applied in 7.x-1.x.
Thanks for the patch @Pallavi.
Comment #12
bhide.nishad CreditAttribution: bhide.nishad at Clarion Technologies commented