You are here

function delta_ui_layout_delete_submit in Delta 7.2

1 string reference to 'delta_ui_layout_delete_submit'
delta_layout_delete in ./delta_ui.admin.inc
delta_template_configure function.

File

./delta_ui.module, line 213

Code

function delta_ui_layout_delete_submit($form, &$form_state) {
  $values = $form_state['values'];
  $key = $values['tid'];
  variable_del($key, $values);
  db_delete('delta_theme_settings')
    ->condition('tid', $key)
    ->execute();
  drupal_set_message(t('The item has been deleted.'));
  cache_clear_all();
  drupal_goto('admin/appearance/delta/layouts');
}