You are here

function apachesolr_mlt_delete_block_form in Apache Solr Search 5

Same name and namespace in other branches
  1. 5.2 apachesolr.admin.inc \apachesolr_mlt_delete_block_form()
  2. 6 apachesolr.admin.inc \apachesolr_mlt_delete_block_form()
  3. 6.2 apachesolr.admin.inc \apachesolr_mlt_delete_block_form()
1 string reference to 'apachesolr_mlt_delete_block_form'
apachesolr_mlt_menu in contrib/apachesolr_mlt/apachesolr_mlt.module
Implementation of hook_menu()

File

contrib/apachesolr_mlt/apachesolr_mlt.module, line 339

Code

function apachesolr_mlt_delete_block_form($block_id = NULL) {
  if (is_numeric($block_id)) {
    $block = apachesolr_mlt_load_block($block_id);
    $form['block_id'] = array(
      '#type' => 'value',
      '#value' => $block_id,
    );
    $form['#redirect'] = 'admin/settings/apachesolr_mlt';
    return confirm_form($form, t('Are you sure you want to delete the ApacheSolr content recommendation block %name?', array(
      '%name' => $block['name'],
    )), 'admin/settings/apachesolr_mlt', t('The block will be deleted. This action cannot be undone.'), t('Delete'), t('Cancel'));
  }
}