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 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');
}
}
Comment | File | Size | Author |
---|---|---|---|
#2 | apachesolr_adding_css_hook_init_for_single_table-2834242-1.patch | 1.17 KB | dwebpoint |
|
Comments
Comment #2
dwebpoint CreditAttribution: dwebpoint at EPAM Systems commentedHere is the patch to resolve the issue.
Comment #3
dwebpoint CreditAttribution: dwebpoint as a volunteer commentedComment #4
dwebpoint CreditAttribution: dwebpoint as a volunteer commentedComment #5
dwebpoint CreditAttribution: dwebpoint as a volunteer commentedComment #6
dwebpoint CreditAttribution: dwebpoint as a volunteer commentedComment #7
dwebpoint CreditAttribution: dwebpoint at EPAM Systems commentedComment #9
janusman CreditAttribution: janusman at Acquia commentedFixed