You are here

function _quotes_block_delete_submit in Quotes 5

Same name and namespace in other branches
  1. 6 quotes.admin.inc \_quotes_block_delete_submit()
  2. 7 quotes.admin.inc \_quotes_block_delete_submit()

Deletes the specified block.

@result A string specifying the page to which the user should be redirected (admin/settings/quotes/blocks).

Parameters

$form_id: The string specifying the form ID of the form that was submitted.

$form_values: The array specifying the form values.

File

./quotes.module, line 1972

Code

function _quotes_block_delete_submit($form_id, $form_values) {
  db_query("DELETE FROM {quotes_blocks} WHERE bid = %d", $form_values['bid']);
  drupal_set_message(t('The block %name has been removed.', array(
    '%name' => $form_values['block_name'],
  )));
  cache_clear_all();
  return 'admin/settings/quotes/blocks';
}