function skinr_ui_import_form_submit in Skinr 6.2
Same name and namespace in other branches
- 7.2 skinr_ui.admin.inc \skinr_ui_import_form_submit()
Submit handler for skinr settings import form.
File
- ./
skinr_ui.admin.inc, line 775 - Admin page callbacks for the skinr module.
Code
function skinr_ui_import_form_submit(&$form, &$form_state) {
foreach ($form_state['skinrs'] as $module => $skinrs) {
foreach ($skinrs as $sid => $skinr) {
if (!skinr_set($skinr)) {
drupal_set_message(t('Skinr settings for the theme %theme could not be saved!', array(
'%theme' => $form_state['values']['theme'],
)), 'error');
}
}
}
drupal_set_message(t('Skinr settings for the theme %theme have been saved.', array(
'%theme' => $form_state['values']['theme'],
)));
drupal_goto('admin/build/skinr');
}