You are here

function delta_override_delete_submit in Delta 6

Same name and namespace in other branches
  1. 7 delta.module \delta_override_delete_submit()

submit handler for delta_override_delete()

See also

delta_override_delete()

File

./delta.module, line 888
The Delta Theme API is an advanced manipulation of the Theme Settings API to allow for customization/configuration of theme settings based on node types, context, or groups of paths.

Code

function delta_override_delete_submit($form, &$form_state) {
  $oid = $form_state['values']['did'];
  db_query("\n    DELETE FROM {delta_theme_overrides}  \n    WHERE did = %d\n    LIMIT 1", $oid);
  drupal_set_message('Override: <em>' . $form_state['values']['name'] . '</em> deleted.');
  drupal_goto('admin/build/delta/settings/' . $form_state['values']['theme']);
}