You are here

function skinr_rule_delete_submit in Skinr 6.2

1 string reference to 'skinr_rule_delete_submit'
skinr_rule_edit in ./skinr_ui.rules.inc
Menu callback; displays the edit form for a skinr rule.

File

./skinr_ui.rules.inc, line 157
Admin page callbacks for the skinr module.

Code

function skinr_rule_delete_submit($form, &$form_state) {
  $destination = '';
  if (isset($_REQUEST['destination'])) {
    $destination = drupal_get_destination();
    unset($_REQUEST['destination']);
  }
  $form_state['redirect'] = array(
    'admin/build/skinr/rules/delete/' . $form_state['values']['rid'],
    $destination,
  );
}