function dynamic_background_admin_weight_form_submit in Dynamic Background 7
Same name and namespace in other branches
- 7.2 includes/weight.admin.inc \dynamic_background_admin_weight_form_submit()
Submit handler for the weight administration form, which stores the weights in a sort frendly format (used in loading of default values for the form).
File
- includes/
weight.admin.inc, line 68 - Hanldes the re-ordring of dynamic background extension weights to determind overrid order.
Code
function dynamic_background_admin_weight_form_submit($form, $form_state) {
$weights = array();
foreach ($form_state['values']['module'] as $name => $value) {
$weights[] = array(
'name' => $name,
'weight' => $value['weight'],
);
}
variable_set('dynamic_background_weight', $weights);
}