function ds_revert_form_submit in Display Suite 6.3
Same name and namespace in other branches
- 6 includes/ds.tools.inc \ds_revert_form_submit()
- 6.2 includes/ds.tools.inc \ds_revert_form_submit()
Revert form submit.
File
- includes/
ds.tools.inc, line 351 - Tools for Display suite like export & import.
Code
function ds_revert_form_submit($form, &$form_state) {
drupal_set_message(t('Display settings for %module, %type and %build_mode have been reverted.', array(
'%module' => $form['#module'],
'%type' => $form['#object_type'],
'%build_mode' => $form['#build_mode'],
)));
ds_import_default_data($form['#module'], $form['#object_type'], $form['#build_mode']);
$form_state['redirect'] = $form['#path'];
}