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.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid created an issue. See original summary.

Dave Reid’s picture

grahl’s picture

Status: Needs review » Needs work
grahl’s picture

Status: Needs work » Needs review
grahl’s picture

Hi Dave

Thanks for your patch, I know this is really old but could you tell me why you removed the following CSS?

-  
-form#dblog-filter-form div#edit-type-wrapper,
-table#admin-dblog th img
-{ display: none;}
-code.export-summary {font-weight: normal;}
-
-table#admin-dblog th a,
-table#admin-dblog th {text-decoration: none; color: #000000;}
-th code {}

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.

grahl’s picture

Status: Needs review » Postponed (maintainer needs more info)

  • grahl committed 0419abe on 7.x-2.x authored by Dave Reid
    Issue #2630480 by Dave Reid, grahl: Unnecessary CSS added to every page...
grahl’s picture

Status: Postponed (maintainer needs more info) » Fixed

The 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.