You are here

function party_settings_pieces_order_form_submit in Party 7

Same name and namespace in other branches
  1. 8.2 party.admin.inc \party_settings_pieces_order_form_submit()

Submit handler for the party pieces order form.

File

./party.admin.inc, line 123
Admin page callback file for the party module.

Code

function party_settings_pieces_order_form_submit($form, &$form_state) {
  $settings = array();
  foreach (array_keys($form_state['values']['pieces']) as $path) {
    $settings[$path] = $form_state['values']['pieces'][$path]['weight'];
  }
  variable_set('party_name_pieces_weights', $settings);
  menu_rebuild();
}