The CSS file apachesolr.css was added for ALL admin pages using hook_init . Meanwhile, CSS styles are applying for apachesolr module settings form only. Seems to me, it would be better to attach the CSS file for settings form only.

function apachesolr_init() {
  if (arg(0) == 'admin') {
    // Add the CSS for this module
    drupal_add_css(drupal_get_path('module', 'apachesolr') . '/apachesolr.css');
  }
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dwebpoint created an issue. See original summary.

dwebpoint’s picture

Here is the patch to resolve the issue.

dwebpoint’s picture

Priority: Minor » Normal
dwebpoint’s picture

Assigned: dwebpoint » Unassigned
dwebpoint’s picture

Category: Task » Bug report
dwebpoint’s picture

Issue summary: View changes
dwebpoint’s picture

Status: Active » Needs review

  • dwebpoint authored d68212d on 7.x-1.x
    Issue #2834242 by dwebpoint: Adding CSS file using hook_init for single...
janusman’s picture

Status: Needs review » Fixed

Fixed

Status: Fixed » Closed (fixed)

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