You are here

function custom_search_admin_submit in Custom Search 6

Same name and namespace in other branches
  1. 7 custom_search.admin.inc \custom_search_admin_submit()

Submit callback to save the ordering

1 string reference to 'custom_search_admin_submit'
custom_search_admin in ./custom_search.admin.inc
@file Admin settings for custom search

File

./custom_search.admin.inc, line 33
Admin settings for custom search

Code

function custom_search_admin_submit($form, &$form_state) {
  foreach ($form_state['values']['custom_search_order'] as $key => $data) {
    variable_set('custom_search_' . $key . '_weight', $data['sort']);
    variable_set('custom_search_' . $key . '_region', $data['region']);
  }
}