function breakpoints_admin_breakpoint_import_form_submit in Breakpoints 7
Import breakpoint.
File
- ./
breakpoints.admin.inc, line 1025 - Breakpoints - admin settings
Code
function breakpoints_admin_breakpoint_import_form_submit($form, &$form_state) {
$breakpoint = $form_state['values']['import'];
if (breakpoints_breakpoint_save($breakpoint)) {
drupal_set_message(t('Breakpoint %breakpoint saved.', array(
'%breakpoint' => $breakpoint->name,
)));
$form_state['redirect'] = 'admin/config/media/breakpoints/';
}
else {
drupal_set_message(t('Something went wrong, we could not save the breakpoint'), 'error');
}
}