function picture_admin_import_form_submit in Picture 7
Import mapping.
File
- ./
picture.admin.inc, line 200 - Picture - map breakpoints and image styles
Code
function picture_admin_import_form_submit($form, &$form_state) {
$mapping = $form_state['values']['import'];
if (picture_mapping_save($mapping)) {
drupal_set_message(t('Mapping %mapping saved.', array(
'%mapping' => $mapping->machine_name,
)));
$form_state['redirect'] = 'admin/config/media/picture/';
}
else {
drupal_set_message(t('Something went wrong, we could not save the mapping'), 'error');
}
}