You are here

function SarniaSolrService::schemaInit in Sarnia 7

1 call to SarniaSolrService::schemaInit()
SarniaSolrService::schemaGetRule in ./service.inc

File

./service.inc, line 340

Class

SarniaSolrService
Search service class using Solr server.

Code

function schemaInit() {
  $this->schema = array();
  $conditions = array(
    'search_api_server' => array(
      '',
      $this->server->machine_name,
    ),
    'enabled' => TRUE,
  );
  $rules = module_invoke_all('sarnia_solr_service_schema', $conditions);
  drupal_alter('sarnia_solr_service_schema', $rules);
  foreach ($rules as $rule) {
    $this->schema[$rule->behavior][] = $rule;
  }
}