You are here

public function SearchApiAlgoliaService::configurationForm in Search API Algolia 7

Defines the configuration form displayed when creating a new server.

Overrides SearchApiAbstractService::configurationForm

File

includes/service.inc, line 78
Contains SearchApiAlgoliaService.

Class

SearchApiAlgoliaService
SearchApiAlgoliaService class.

Code

public function configurationForm(array $form, array &$form_state) {
  $form['application_id'] = array(
    '#type' => 'textfield',
    '#title' => t('Application ID'),
    '#size' => 60,
    '#maxlength' => 128,
    '#required' => TRUE,
    '#default_value' => $this
      ->getApplicationId(),
  );
  $form['api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('API key'),
    '#size' => 60,
    '#maxlength' => 128,
    '#required' => TRUE,
    '#default_value' => $this
      ->getAPIKey(),
  );
  return $form;
}