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.
The ldap_user.css and ldap_servers.admin.css are added to every page request, which is undesired as they are not actually *used* on every page request, but only on certain pages.
- ldap_user.css should only be added when the field widget is viewed, so that can be moved to ldap_user_field_widget_form()
- ldap_servers.admin.css should only be added if the current page starts with admin/config/people/ldap/servers.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2630480-clean-css-additions.patch | 2.15 KB | Dave Reid |
Comments
Comment #2
Dave ReidComment #3
grahlComment #4
grahlComment #5
grahlHi Dave
Thanks for your patch, I know this is really old but could you tell me why you removed the following CSS?
The id attributes look like they'd only apply to dblog but then again I found include_once references to 'dblog.admin.inc' in ldap_help and ldap_authorization.
Comment #6
grahlComment #8
grahlThe css in ldap_servers.admin.css is used inconsistently throughout the admin pages so I loosened the check in init() and left some notes. I actually think that most of that CSS doesn't do anything but leaving it as-is, if someone currently expects that to be there. It's gone in 8 anyway.