You are here

function skinr_ui_import_form_submit in Skinr 7.2

Same name and namespace in other branches
  1. 6.2 skinr_ui.admin.inc \skinr_ui_import_form_submit()

Form submission handler for skinr_ui_import_form().

File

./skinr_ui.admin.inc, line 1098
Admin page callbacks for the Skinr UI module.

Code

function skinr_ui_import_form_submit(&$form, &$form_state) {
  $status = TRUE;
  foreach ($form_state['skins'] as $skin) {
    $status = skinr_skin_import($skin, TRUE) && $status;
  }
  drupal_set_message(t('The skin configurations have been saved.'));
  if (!$status) {
    drupal_set_message(t('Not all skin configurations could be saved!'), 'error', FALSE);
  }
  drupal_goto('admin/structure/skinr');
}