function fac_backend_settings_form in Fast Autocomplete 7
Returns the backend service settings form.
Parameters
array $form: The form array.
array $form_state: The form state array.
Return value
array The backend service settings form.
1 string reference to 'fac_backend_settings_form'
- fac_menu in ./
fac.module - Implements hook_menu().
File
- inc/
fac.admin.inc, line 286 - This file contains the settings forms of the Fast Autocomplete module.
Code
function fac_backend_settings_form(array $form, array $form_state) {
$backend_service = variable_get('fac_backend_service', '');
if (empty($backend_service)) {
drupal_set_message(t('You have not selected a backend service yet. Please select one below.'), 'warning');
drupal_goto('admin/config/search/fac');
}
else {
$service = new $backend_service();
$form = $service
->configurationForm($form, $form_state);
}
return $form;
}