You are here

function fac_backend_settings_form_submit in Fast Autocomplete 7

Submits the backend service settings form submitted values.

Parameters

array $form: The form array.

array $form_state: The form state array.

File

inc/fac.admin.inc, line 324
This file contains the settings forms of the Fast Autocomplete module.

Code

function fac_backend_settings_form_submit(array &$form, array &$form_state) {
  $backend_service = variable_get('fac_backend_service', '');
  $service = new $backend_service();
  $service
    ->configurationFormSubmit($form, $form_state['values'], $form_state);
  drupal_set_message(t('The configuration options have been saved.'));
  drupal_set_message(t('Note that you might need to delete the cached JSON files. You can use <a href="!url">the "delete all json files" button at the bottom of the general settings form</a>.', array(
    '!url' => url('admin/config/search/fac', array(
      'fragment' => 'edit-fac-files-delete-all',
    )),
  )));
}