function acquia_lift_admin_form_submit in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.3 acquia_lift.admin.inc \acquia_lift_admin_form_submit()
- 7.2 acquia_lift.admin.inc \acquia_lift_admin_form_submit()
Submit handler for the Acquia Lift admin form.
Creates a default Acquia Lift agent if one does not yet exist.
1 string reference to 'acquia_lift_admin_form_submit'
- acquia_lift_admin_form in ./
acquia_lift.admin.inc - Admin form for configuring personalization backends.
File
- ./
acquia_lift.admin.inc, line 278 - acquia_lift.admin.inc Provides functions needed for the admin UI.
Code
function acquia_lift_admin_form_submit($form, &$form_state) {
acquia_lift_ensure_default_agent($form_state['values']['acquia_lift_account_info']);
if ($form_state['values']['acquia_lift_confidence_measure'] < 95) {
drupal_set_message(t('A minimum confidence measure of 95% is recommended to ensure proper evaluation of test results.'), 'warning');
}
// Clear the ctools plugin "agent_type" cache for personalize, clear loaded
// files cache, and rebuild the autoloader class definitions.
cache_clear_all('plugins:personalize:agent_type', 'cache', TRUE);
cache_clear_all('ctools_plugin_files:personalize:agent_type', 'cache', TRUE);
registry_rebuild();
}