function breakpoints_admin_multiplier_delete_form_submit in Breakpoints 7
File
- ./
breakpoints.admin.inc, line 1128 - Breakpoints - admin settings
Code
function breakpoints_admin_multiplier_delete_form_submit($form, &$form_state) {
$settings = breakpoints_settings();
$multiplier = $form_state['values']['multiplier'];
$multipliers = drupal_map_assoc($settings->multipliers);
if (isset($multipliers[$multiplier])) {
unset($multipliers[$multiplier]);
}
breakpoints_settings_save(array_values($multipliers));
drupal_set_message(t('Multiplier %multiplier was deleted', array(
'%multiplier' => $multiplier,
)));
$form_state['redirect'] = 'admin/config/media/breakpoints/multipliers';
}