function skinr_ui_add_submit in Skinr 7.2
File
- ./
skinr_ui.admin.inc, line 1202 - Admin page callbacks for the Skinr UI module.
Code
function skinr_ui_add_submit($form, &$form_state) {
$destination = drupal_get_destination();
if ($destination['destination'] == 'admin/structure/skinr/add') {
$destination['destination'] = 'admin/structure/skinr';
}
$form_state['redirect'] = array(
'admin/structure/skinr/edit/' . check_plain($form_state['values']['type']) . '/' . check_plain($form_state['values']['element']),
array(
'query' => $destination,
),
);
}