You are here

function manualcrop_auto_reuse_form_submit in Manual Crop 7

Form submit handler for the auto reuse effect; Sorts and prepares the styles priority array for saving.

File

./manualcrop.admin.inc, line 374
Admin functionality for the Manual Crop module.

Code

function manualcrop_auto_reuse_form_submit($form, &$form_state) {
  $data =& $form_state['values']['data'];

  // Sort by weight and use the keys as values.
  asort($data['style_priority']);
  $data['style_priority'] = array_keys($data['style_priority']);
}