You are here

function apachesolr_init in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr.module \apachesolr_init()
  2. 6 apachesolr.module \apachesolr_init()
  3. 6.2 apachesolr.module \apachesolr_init()

Implements hook_init().

File

./apachesolr.module, line 15
Integration with the Apache Solr search application.

Code

function apachesolr_init() {
  if (arg(0) == 'admin') {

    // Add the CSS for this module
    drupal_add_css(drupal_get_path('module', 'apachesolr') . '/apachesolr.css');
  }
}