You are here

function linkit_profiles_reorder_submit in Linkit 7.2

Save function for the reorder form.

File

plugins/export_ui/linkit_profiles.inc, line 384

Code

function linkit_profiles_reorder_submit($form, &$form_state) {
  foreach ($form_state['values']['profiles'] as $profile_machine_name => $value) {
    $profile = linkit_profile_load($profile_machine_name);
    $profile->weight = $value['weight'];
    linkit_profile_save($profile);
  }
}