function _suggestion_admin_submit_keywords in Autocomplete Search Suggestions 7
Process keywords.
1 call to _suggestion_admin_submit_keywords()
- suggestion_admin_settings_form_submit in ./
suggestion.admin.inc - Custom submit function for the suggestion setting form.
File
- ./
suggestion.admin.inc, line 526 - Administration form for suggestion module.
Code
function _suggestion_admin_submit_keywords(&$form_data) {
foreach (preg_split('/\\s*[\\n\\r]+\\s*/s', $form_data['values']['suggestion_keywords']) as $txt) {
SuggestionHelper::insert($txt, SuggestionStorage::PRIORITY_BIT);
}
unset($form_data['input']['suggestion_keywords']);
unset($form_data['values']['suggestion_keywords']);
}